search for: table_shadow

Displaying 1 result from an estimated 1 matches for "table_shadow".

2013 May 08
11
[PATCH 1/2] xen, libxc: init msix addr/data with value from qemu via hypercall
...xen/arch/x86/hvm/vmsi.c index 36de312..06ea324 100644 --- a/xen/arch/x86/hvm/vmsi.c +++ b/xen/arch/x86/hvm/vmsi.c @@ -168,6 +168,7 @@ struct msixtbl_entry struct { uint32_t msi_ad[3]; /* Shadow of address low, high and data */ } gentries[MAX_MSIX_ACC_ENTRIES]; + unsigned long table_shadow[BITS_TO_LONGS(MAX_MSIX_ACC_ENTRIES)]; struct rcu_head rcu; }; @@ -229,6 +230,9 @@ static int msixtbl_read( nr_entry = (address - entry->gtable) / PCI_MSIX_ENTRY_SIZE; if ( nr_entry >= MAX_MSIX_ACC_ENTRIES ) goto out; + if( !test_bit(nr_entry, entr...