Re: KVM: MMU: handle invalid root_hpa at __direct_map

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

 



On 12/20/2013 01:28 AM, Marcelo Tosatti wrote:
> 
> It is possible for __direct_map to be called on invalid root_hpa
> (-1), two examples:
> 
> 1) try_async_pf -> can_do_async_pf
>     -> vmx_interrupt_allowed -> nested_vmx_vmexit
> 2) vmx_handle_exit -> vmx_interrupt_allowed -> nested_vmx_vmexit
> 
> Then to load_vmcs12_host_state and kvm_mmu_reset_context.
> 
> Check for this possibility, let fault exception be regenerated.
> 
> BZ: https://bugzilla.redhat.com/show_bug.cgi?id=924916
> 

Nice catch, Marcelo!

Isn't it better to do kvm_mmu_reload() before calling page_fault handler?
Then a #PF can be avoided.

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