[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: mmio_ro_do_page_fault() must be unreachable for DomU
commit 7efab948acd1c1092b1a9e7b3be2a97389911bc5 Author: Jan Beulich <JBeulich@xxxxxxxx> AuthorDate: Thu Sep 28 09:09:21 2017 -0600 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Wed Oct 4 10:25:19 2017 +0100 x86: mmio_ro_do_page_fault() must be unreachable for DomU When combining PTWR and MMIO-R/O PV page fault handlers, the need for a second hwdom check was overlooked. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/pv/ro-page-fault.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/pv/ro-page-fault.c b/xen/arch/x86/pv/ro-page-fault.c index 53a3c15..6b2976d 100644 --- a/xen/arch/x86/pv/ro-page-fault.c +++ b/xen/arch/x86/pv/ro-page-fault.c @@ -346,7 +346,8 @@ int pv_ro_page_fault(unsigned long addr, struct cpu_user_regs *regs) if ( ((l1e_get_flags(pte) & (_PAGE_PRESENT | _PAGE_RW)) != _PAGE_PRESENT) ) return 0; - mmio_ro = rangeset_contains_singleton(mmio_ro_ranges, l1e_get_pfn(pte)); + mmio_ro = is_hardware_domain(currd) && + rangeset_contains_singleton(mmio_ro_ranges, l1e_get_pfn(pte)); if ( mmio_ro ) rc = mmio_ro_do_page_fault(&ctxt, addr, pte); else -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |