On Wed, Jun 17, 2020 at 12:37:13PM +0000, Kang, Luwei wrote:
> > How does KVM deal with this, do they insert/modify trace packets on trapped
> > and emulated instructions by the VMM?
> 
> The KVM includes instruction decoder and emulator(arch/x86/kvm/emulate.c), 
> and the guest's memory can be set to write-protect as well. But it doesn't 
> support Intel PT packets software emulator. For KVM, the Intel PT feature 
> will be exposed to KVM guest and KVM guest can use Intel PT feature like 
> native.

But if such feature is exposed to the guest for it's own usage, won't
it be missing packets for instructions emulated by the VMM?

Thanks, Roger.

Reply via email to