Re: [PATCH 2/2] x86: Bail out on unemulated instructions

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

 



 On 08/15/2010 07:11 PM, Gleb Natapov wrote:

Neither are possible.  We can have one cpu in big real mode and
others in paged mode, so even in real mode we cannot rule out a
spurious page fault due to shadow write protection.

Correct, just checking X86EMUL_MODE_REAL is not enough due to smp, but
why checking for big real mode will not work? If instruction can't be
emulated while vcpu is in big real mode returning to vcpu is not an option,
so kvm will fail anyway.

Right. I guess we can have an emulation_reason variable which explains why we are emulating (unvirtualizable state, mmu page fault, mmio page fault, unvirtualizable instruction) and decide accordingly. But it's a lot of work.

--
error compiling committee.c: too many arguments to function

--
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