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

[Xen-changelog] [xen staging] x86/shadow: emulate_gva_to_mfn() should respect p2m_ioreq_server



commit 2190c8160a802560029d5d260d5f6979302b53d0
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Nov 15 16:43:36 2018 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Nov 15 16:43:36 2018 +0100

    x86/shadow: emulate_gva_to_mfn() should respect p2m_ioreq_server
    
    Writes to such pages need to be handed to the emulator.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Acked-by: Tim Deegan <tim@xxxxxxx>
---
 xen/arch/x86/mm/shadow/hvm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/arch/x86/mm/shadow/hvm.c b/xen/arch/x86/mm/shadow/hvm.c
index 4cc75916b8..8994cb9f87 100644
--- a/xen/arch/x86/mm/shadow/hvm.c
+++ b/xen/arch/x86/mm/shadow/hvm.c
@@ -338,6 +338,11 @@ static mfn_t emulate_gva_to_mfn(struct vcpu *v, unsigned 
long vaddr,
     {
         return _mfn(BAD_GFN_TO_MFN);
     }
+    if ( p2mt == p2m_ioreq_server )
+    {
+        put_page(page);
+        return _mfn(BAD_GFN_TO_MFN);
+    }
     if ( p2m_is_discard_write(p2mt) )
     {
         put_page(page);
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.