x86/vMSI-X: table read/write emulation adjustments
cover x86/vMSI-X: table read/write emulation adjustments
Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in.
1: honor all mask requests
2: add valid bits for read acceleration
PATCH 1/2 x86/vMSI-X: honor all mask requests
Commit 74fd0036de ("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to
[00:04.0] pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.
which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
xen/arch/x86/hvm/vmsi.c +4 -4
@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) ) { -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }
x86/vMSI-X: honor all mask requests
Commit 74fd0036de ("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to
[00:04.0] pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.
which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
xen/arch/x86/hvm/vmsi.c +4 -4
@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) ) { -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 1/2] x86/vMSI-X: honor all mask requests
Quoted 9 lines · Jan Beulich
Commit
74fd0036de("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to
Quoted 8 lines
[00:04.0]
pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
Signed-off-by Jan Beulich <[email protected]>
Quoted 66 lines
xen/arch/x86/hvm/vmsi.c +4
-4@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) ) { -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }x86/vMSI-X: honor all mask requests
Commit
74fd0036de("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to[00:04.0]
pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/hvm/vmsi.c +4
-4@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) ) { -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 1/2] x86/vMSI-X: honor all mask requests
In reply to Jan BeulichQuoted 32 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jan Beulich
Sent: Saturday, March 21, 2015 12:27 AM
To: xen-devel
Cc: Andrew Cooper; Keir Fraser
Subject: [Xen-devel] [PATCH 1/2] x86/vMSI-X: honor all mask requestsCommit
74fd0036de("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to[00:04.0]
pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/hvm/vmsi.c static int msixtbl_write(struct vcpu *v, · line 292
Quoted 9 lines
xen/arch/x86/hvm/vmsi.c +3
-2@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) )
Is it more accurate as the follows?
If ( (offset == PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET) &&
!(val & PCI_MSIX_VECTOR_BITMASK) && test_and_clear_bit(nr_entry, &entry->table_flags) )
BTW, how can I reproduce this issue?
Thanks,
Feng
Quoted 9 lines
xen/arch/x86/hvm/vmsi.c +1
-2{ -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }
Re: [PATCH 1/2] x86/vMSI-X: honor all mask requests
Quoted 52 lines
-----Original Message-----
From: Wu, Feng
Sent: Wednesday, March 25, 2015 1:41 PM
To: Jan Beulich; xen-devel
Cc: Andrew Cooper; Keir Fraser; Wu, Feng
Subject: RE: [Xen-devel] [PATCH 1/2] x86/vMSI-X: honor all mask requestsQuoted 30 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jan Beulich
Sent: Saturday, March 21, 2015 12:27 AM
To: xen-devel
Cc: Andrew Cooper; Keir Fraser
Subject: [Xen-devel] [PATCH 1/2] x86/vMSI-X: honor all mask requestsCommit
74fd0036de("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to[00:04.0]
pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/hvm/vmsi.c static int msixtbl_write(struct vcpu *v, · line 289
Quoted 6 lines
xen/arch/x86/hvm/vmsi.c +1
-2@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified.
xen/arch/x86/hvm/vmsi.c static int msixtbl_write(struct vcpu *v, · line 291
Quoted 3 lines
xen/arch/x86/hvm/vmsi.c +2
-0*/ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) )
Quoted 5 lines
Is it more accurate as the follows?
If ( (offset ==
PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET) &&
!(val &PCI_MSIX_VECTOR_BITMASK) &&test_and_clear_bit(nr_entry, &entry->table_flags))
Oh, just found "offset == PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET" is not needed here, it guarantees this when we get here.
Thanks,
Feng
Quoted 15 lines
BTW, how can I reproduce this issue?
Thanks,
FengQuoted 9 lines
xen/arch/x86/hvm/vmsi.c +1
-2{ -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }
Re: [PATCH 1/2] x86/vMSI-X: honor all mask requests
In reply to Wu, FengQuoted 2 lines
Quoted 1 line
Quoted 1 line · On 25.03.15 at 06:40, <[email protected]> wrote:
BTW, how can I reproduce this issue?
Just change affinity of an MSI-X IRQ inside the guest - at least that's all it took for me to see it.
Jan
Re: [PATCH 1/2] x86/vMSI-X: honor all mask requests
In reply to Jan BeulichQuoted 9 lines · Jan Beulich
Commit
74fd0036de("x86: properly handle MSI-X unmask operation from guests") didn't go far enough: it fixed an issue with unmasking, but left an issue with masking in place: Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in. Bypassing the rest of the logic on a guest mask operation leads to
Quoted 8 lines
[00:04.0]
pci_msix_write: Error: Can't update msix entry 1 since MSI-X is already enabled.which surprisingly enough doesn't lead to the device not working anymore (I didn't dig in deep enough to figure out why that is). But it does prevent the IRQ to be migrated inside the guest, i.e. all interrupts will always arrive in vCPU 0.
Signed-off-by Jan Beulich <[email protected]>
Quoted 22 lines
xen/arch/x86/hvm/vmsi.c +4
-4@@ -286,11 +286,11 @@ static int msixtbl_write(struct vcpu *v, goto out; } -/* exit to device model if address/data has been modified */ -if (test_and_clear_bit (nr_entry, &entry->table_flags) ) +/* Exit to device model when unmasking and address/data got modified. */ +if ( !(val &PCI_MSIX_VECTOR_BITMASK ) && +test_and_clear_bit (nr_entry, &entry->table_flags) ) { -if ( !(val &PCI_MSIX_VECTOR_BITMASK ) ) - v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; + v->arch.hvm_vcpu.hvm_io.msix_unmask_address = address; goto out; }
PATCH 2/2 x86/vMSI-X: add valid bits for read acceleration
In reply to Jan BeulichAgain because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
xen/arch/x86/hvm/vmsi.c +8 -3
@@ -153,12 +153,15 @@ struct msixtbl_entry/* TODO: resolve the potential race by destruction of pdev */ struct pci_dev *pdev;unsigned long gtable;/* gpa of msix table */ -unsigned long table_flags[BITS_TO_LONGS (MAX_MSIX_TABLE_ENTRIES )]; +DECLARE_BITMAP (table_flags,MAX_MSIX_TABLE_ENTRIES );#define MAX_MSIX_ACC_ENTRIES 3unsigned int table_len;struct {uint32_t msi_ad[3 ];/* Shadow of address low, high and data */ } gentries[MAX_MSIX_ACC_ENTRIES ]; +DECLARE_BITMAP (acc_valid,3 *MAX_MSIX_ACC_ENTRIES ); +#define acc_bit (what, ent, slot, idx) \ + what##_bit((slot) * 3 + (idx), (ent)->acc_valid)struct rcu_head rcu; };
@@ -233,9 +236,10 @@ static int msixtbl_read(if ( offset !=PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET ) { nr_entry = (address - entry->gtable) /PCI_MSIX_ENTRY_SIZE ; -if ( nr_entry >=MAX_MSIX_ACC_ENTRIES ) - goto out; index = offset /sizeof (uint32_t ); +if ( nr_entry >=MAX_MSIX_ACC_ENTRIES || + !acc_bit (test, entry, nr_entry, index) ) + goto out; *pval = entry->gentries[nr_entry].msi_ad[index]; }else
@@ -281,6 +285,7 @@ static int msixtbl_write(struct vcpu *v, { index = offset /sizeof (uint32_t ); entry->gentries[nr_entry].msi_ad[index] = val; +acc_bit (set, entry, nr_entry, index); }set_bit (nr_entry, &entry->table_flags); goto out;
x86/vMSI-X: add valid bits for read acceleration
Again because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
xen/arch/x86/hvm/vmsi.c +8 -3
@@ -153,12 +153,15 @@ struct msixtbl_entry/* TODO: resolve the potential race by destruction of pdev */ struct pci_dev *pdev;unsigned long gtable;/* gpa of msix table */ -unsigned long table_flags[BITS_TO_LONGS (MAX_MSIX_TABLE_ENTRIES )]; +DECLARE_BITMAP (table_flags,MAX_MSIX_TABLE_ENTRIES );#define MAX_MSIX_ACC_ENTRIES 3unsigned int table_len;struct {uint32_t msi_ad[3 ];/* Shadow of address low, high and data */ } gentries[MAX_MSIX_ACC_ENTRIES ]; +DECLARE_BITMAP (acc_valid,3 *MAX_MSIX_ACC_ENTRIES ); +#define acc_bit (what, ent, slot, idx) \ + what##_bit((slot) * 3 + (idx), (ent)->acc_valid)struct rcu_head rcu; };
@@ -233,9 +236,10 @@ static int msixtbl_read(if ( offset !=PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET ) { nr_entry = (address - entry->gtable) /PCI_MSIX_ENTRY_SIZE ; -if ( nr_entry >=MAX_MSIX_ACC_ENTRIES ) - goto out; index = offset /sizeof (uint32_t ); +if ( nr_entry >=MAX_MSIX_ACC_ENTRIES || + !acc_bit (test, entry, nr_entry, index) ) + goto out; *pval = entry->gentries[nr_entry].msi_ad[index]; }else
@@ -281,6 +285,7 @@ static int msixtbl_write(struct vcpu *v, { index = offset /sizeof (uint32_t ); entry->gentries[nr_entry].msi_ad[index] = val; +acc_bit (set, entry, nr_entry, index); }set_bit (nr_entry, &entry->table_flags); goto out;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 2/2] x86/vMSI-X: add valid bits for read acceleration
Quoted 5 lines · Jan Beulich
Again because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/hvm/vmsi.c struct msixtbl_entry · line 156
Quoted 9 lines
xen/arch/x86/hvm/vmsi.c +1
-1@@ -153,12 +153,15 @@ struct msixtbl_entry/* TODO: resolve the potential race by destruction of pdev */ struct pci_dev *pdev;unsigned long gtable;/* gpa of msix table */ -unsigned long table_flags[BITS_TO_LONGS (MAX_MSIX_TABLE_ENTRIES )]; +DECLARE_BITMAP (table_flags,MAX_MSIX_TABLE_ENTRIES );
That seems unrelated to this patch? Perhaps mention the cleanup part in the commit.
Quoted 89 lines
xen/arch/x86/hvm/vmsi.c +7
-2#define MAX_MSIX_ACC_ENTRIES 3unsigned int table_len;struct {uint32_t msi_ad[3 ];/* Shadow of address low, high and data */ } gentries[MAX_MSIX_ACC_ENTRIES ]; +DECLARE_BITMAP (acc_valid,3 *MAX_MSIX_ACC_ENTRIES ); +#define acc_bit (what, ent, slot, idx) \ + what##_bit((slot) * 3 + (idx), (ent)->acc_valid)struct rcu_head rcu; };@@ -233,9 +236,10 @@ static int msixtbl_read(if ( offset !=PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET ) { nr_entry = (address - entry->gtable) /PCI_MSIX_ENTRY_SIZE ; -if ( nr_entry >=MAX_MSIX_ACC_ENTRIES ) - goto out; index = offset /sizeof (uint32_t ); +if ( nr_entry >=MAX_MSIX_ACC_ENTRIES || + !acc_bit (test, entry, nr_entry, index) ) + goto out; *pval = entry->gentries[nr_entry].msi_ad[index]; }else @@ -281,6 +285,7 @@ static int msixtbl_write(struct vcpu *v, { index = offset /sizeof (uint32_t ); entry->gentries[nr_entry].msi_ad[index] = val; +acc_bit (set, entry, nr_entry, index); }set_bit (nr_entry, &entry->table_flags); goto out;x86/vMSI-X: add valid bits for read acceleration
Again because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
Signed-off-by Jan Beulich <[email protected]>xen/arch/x86/hvm/vmsi.c +8
-3@@ -153,12 +153,15 @@ struct msixtbl_entry/* TODO: resolve the potential race by destruction of pdev */ struct pci_dev *pdev;unsigned long gtable;/* gpa of msix table */ -unsigned long table_flags[BITS_TO_LONGS (MAX_MSIX_TABLE_ENTRIES )]; +DECLARE_BITMAP (table_flags,MAX_MSIX_TABLE_ENTRIES );#define MAX_MSIX_ACC_ENTRIES 3unsigned int table_len;struct {uint32_t msi_ad[3 ];/* Shadow of address low, high and data */ } gentries[MAX_MSIX_ACC_ENTRIES ]; +DECLARE_BITMAP (acc_valid,3 *MAX_MSIX_ACC_ENTRIES ); +#define acc_bit (what, ent, slot, idx) \ + what##_bit((slot) * 3 + (idx), (ent)->acc_valid)struct rcu_head rcu; };@@ -233,9 +236,10 @@ static int msixtbl_read(if ( offset !=PCI_MSIX_ENTRY_VECTOR_CTRL_OFFSET ) { nr_entry = (address - entry->gtable) /PCI_MSIX_ENTRY_SIZE ; -if ( nr_entry >=MAX_MSIX_ACC_ENTRIES ) - goto out; index = offset /sizeof (uint32_t ); +if ( nr_entry >=MAX_MSIX_ACC_ENTRIES || + !acc_bit (test, entry, nr_entry, index) ) + goto out; *pval = entry->gentries[nr_entry].msi_ad[index]; }else @@ -281,6 +285,7 @@ static int msixtbl_write(struct vcpu *v, { index = offset /sizeof (uint32_t ); entry->gentries[nr_entry].msi_ad[index] = val; +acc_bit (set, entry, nr_entry, index); }set_bit (nr_entry, &entry->table_flags); goto out;_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [PATCH 2/2] x86/vMSI-X: add valid bits for read acceleration
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 23.03.15 at 20:11, <[email protected]> wrote:
Quoted 5 lines · Jan Beulich
Again because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
Signed-off-by Jan Beulich <[email protected]>Reviewed-by Konrad Rzeszutek Wilk <[email protected]>Quoted 1 line
Quoted 11 lines
xen/arch/x86/hvm/vmsi.c struct msixtbl_entry · line 156
Quoted 8 lines
xen/arch/x86/hvm/vmsi.c +1
-1@@ -153,12 +153,15 @@ struct msixtbl_entry/* TODO: resolve the potential race by destruction of pdev */ struct pci_dev *pdev;unsigned long gtable;/* gpa of msix table */ -unsigned long table_flags[BITS_TO_LONGS (MAX_MSIX_TABLE_ENTRIES )]; +DECLARE_BITMAP (table_flags,MAX_MSIX_TABLE_ENTRIES );That seems unrelated to this patch? Perhaps mention the cleanup part in the commit.
Ah, yes, I meant to but forgot.
Jan
Re: [PATCH 2/2] x86/vMSI-X: add valid bits for read acceleration
In reply to Jan BeulichQuoted 5 lines · Jan Beulich
Again because Xen doesn't get to see all guest writes, it shouldn't serve reads from its cache before having seen a write to the respective address.
Signed-off-by Jan Beulich <[email protected]>
Ping: [PATCH 0/2] x86/vMSI-X: table read/write emulation adjustments
In reply to Jan BeulichQuoted 1 line
Quoted 1 line
Quoted 1 line · On 20.03.15 at 16:52, <[email protected]> wrote:
This has been pending for almost 4 weeks now...
Jan
Quoted 16 lines
Due to the (late) point in time when qemu requests the hypervisor to set up MSI-X interrupts (which is where the MMIO intercept gets put in place), the hypervisor doesn't see all guest writes, and hence shouldn't make assumptions on the state the virtual MSI-X resources are in.
1: honor all mask requests
2: add valid bits for read accelerationSigned-off-by Jan Beulich <[email protected]>_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel