Re: [PATCH 3/6] Emulator: Inject #PF when page was not found

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

 




On 17.05.2009, at 22:58, Avi Kivity wrote:

Alexander Graf wrote:

I can't think why it was done for writes. Normally, a guest page fault would be trapped and reflected a long time before emulation, in FNAME(page_fault)(), after walk_addr().

Can you give some details on the situation? What instruction was executed, and why kvm tried to emulate it?

I remember it was something about accessing the apic with npt. Maybe the real problem was the restricted bit checking that made the emulated instruction behave differently from the real mmu.

The apic should not be mapped by Hyper-V's shadow page tables, so this should have been handled by page_fault().

I think I only had to include this to find out that the restricted bit was checked for, so I got a blue screen in the guest :-).
Hyper-V works fine without this patch on NPT.

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