Skip to contentSkip to conversation

x86/vMSI-X: fix qword write covering vector control field

PATCH New Jan Beulich 1 participant 1 message Apr 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/vMSI-X: fix qword write covering vector control field

Along with using the upper 32 bits of the written value, the address also needs advancing, so that msix_write_completion() will use the correct address for re-invocation of msixtbl_write().

xen/arch/x86/hvm/vmsi.c +1 -0
@@ -295,6 +295,7 @@ static int msixtbl_write(struct vcpu *v,
         if ( len != 8 || !index )
             goto out;
         val >>= 32;
+        address += 4;
     }
 
     /* Exit to device model when unmasking and address/data got modified. */

x86/vMSI-X: fix qword write covering vector control field

Along with using the upper 32 bits of the written value, the address also needs advancing, so that msix_write_completion() will use the correct address for re-invocation of msixtbl_write().

xen/arch/x86/hvm/vmsi.c +1 -0
@@ -295,6 +295,7 @@ static int msixtbl_write(struct vcpu *v,
         if ( len != 8 || !index )
             goto out;
         val >>= 32;
+        address += 4;
     }
 
     /* Exit to device model when unmasking and address/data got modified. */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel