Causing VMEXIT on every branch instruction by the Guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am working on project implementing multiprocessor Record-Replay
using KVM-Qemu.

Host CPU :
cat /proc/cpuinfo
model name	: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz
stepping	: 2
cpu MHz		: 2660.013
cache size	: 12288 KB
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt aes
lahf_lm ida arat epb dts tpr_shadow vnmi flexpriority ept vpid
address sizes	: 40 bits physical, 48 bits virtual

My kvm version is  QEMU emulator version 0.14.0 (qemu-kvm-0.14.0),
Copyright (c) 2003-2008 Fabrice Bellard

The host kernel version : 2.6.36.4

Running gentoo as Guest.


We can set the guest to VMEXIT by setting the
CPU_BASED_MONITOR_TRAP_FLAG. This will cause the guest to single step
on every instruction.

But I want to make the guest do a VMEXIT only on branch instruction,
On a stand alone system we can do this by setting both the TRAP FLAG
(TF ) of eflags register and BRANCH_TRAP_FLAG (BTF) on IA32_DEBUGCTL
msr register, but there are no such controls in the VMCS.

How can I do this ?

Is there any workaround?  Ex using the reserved bit area of VMCS

Thanks,
Sharan
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux