projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ac3817
)
x86/pci: Store VF's memory space displacement in a 64-bit value
author
Boris Ostrovsky
<boris.ostrovsky@oracle.com>
Thu, 13 Feb 2014 09:49:55 +0000
(10:49 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 13 Feb 2014 09:49:55 +0000
(10:49 +0100)
VF's memory space offset can be greater than 4GB and therefore needs
to be stored in a 64-bit variable.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/msi.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/msi.c
b/xen/arch/x86/msi.c
index 284042e19d6295419a24f0b6f4e214bab8023fb4..1aaceeb8f4ec9bd937e1f1cf9f1f8d6d64348bc8 100644
(file)
--- a/
xen/arch/x86/msi.c
+++ b/
xen/arch/x86/msi.c
@@
-610,7
+610,8
@@
static int msi_capability_init(struct pci_dev *dev,
static u64 read_pci_mem_bar(u16 seg, u8 bus, u8 slot, u8 func, u8 bir, int vf)
{
u8 limit;
- u32 addr, base = PCI_BASE_ADDRESS_0, disp = 0;
+ u32 addr, base = PCI_BASE_ADDRESS_0;
+ u64 disp = 0;
if ( vf >= 0 )
{