From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6bIN-0007hn-Bv for qemu-devel@nongnu.org; Tue, 15 Nov 2016 05:48:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6bIM-0001Kl-Fl for qemu-devel@nongnu.org; Tue, 15 Nov 2016 05:48:55 -0500 Date: Tue, 15 Nov 2016 05:48:34 -0500 (EST) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <1399106710.2397763.1479206914482.JavaMail.zimbra@redhat.com> In-Reply-To: <1479206719-14780-2-git-send-email-ann.zhuangyanying@huawei.com> References: <1479206719-14780-1-git-send-email-ann.zhuangyanying@huawei.com> <1479206719-14780-2-git-send-email-ann.zhuangyanying@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 1/2] ivshmem: fix misconfig of not_legacy_32bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhuangyanying Cc: marcandre lureau , armbru@redhat.com, pbonzini@redhat.com, mst@redhat.com, arei gonglei , qemu-devel@nongnu.org, qemu-stable@nongnu.org Hi ----- Original Message ----- > From: ZhuangYanying >=20 > After commit 5400c02, ivshmem_64bit renamed to not_legacy_32bit, > and changed the implementation of this property. > Then use64 =3D 1, ~PCI_BASE_ADDRESS_MEM_TYPE_64 (default for ivshmem), > the actual use is the legacy model, > can not support greater than or equal 1G mapping, > which is the opposite of configuration requirements. >=20 > Cc: qemu-stable@nongnu.org > Signed-off-by: Zhuang Yanying > Reviewed-by: Gonglei Reviewed-by: Marc-Andr=C3=A9 Lureau > --- > hw/misc/ivshmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index 230e51b..b897685 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -858,7 +858,7 @@ static void ivshmem_common_realize(PCIDevice *dev, Er= ror > **errp) > pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, > &s->ivshmem_mmio); > =20 > - if (!s->not_legacy_32bit) { > + if (s->not_legacy_32bit) { > attr |=3D PCI_BASE_ADDRESS_MEM_TYPE_64; > } > =20 > -- > 1.8.3.1 >=20 >=20 >=20