|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [PATCH] ivshmem: fix PCI BAR2 registration during initialization |
Date: | Mon, 21 Nov 2011 18:22:41 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 |
On 11/21/2011 04:56 AM, address@hidden wrote:
From: Hongyong Zang<address@hidden> Ivshmem cannot work, and the command lspci cannot show ivshmem BAR2 in the guest. As for pci_register_bar(), parameter MemoryRegion should be s->bar instead of s->ivshmem. Signed-off-by: Hongyong Zang<address@hidden>
Applied. Thanks. Regards, Anthony Liguori
--- hw/ivshmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 242fbea..2ecf658 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -694,7 +694,7 @@ static int pci_ivshmem_init(PCIDevice *dev) s->peers = g_malloc0(s->nb_peers * sizeof(Peer)); pci_register_bar(&s->dev, 2, - PCI_BASE_ADDRESS_SPACE_MEMORY,&s->ivshmem); + PCI_BASE_ADDRESS_SPACE_MEMORY,&s->bar); s->eventfd_chr = g_malloc0(s->vectors * sizeof(CharDriverState *));
[Prev in Thread] | Current Thread | [Next in Thread] |