Message ID | 1479206719-14780-3-git-send-email-ann.zhuangyanying@huawei.com |
---|---|
State | New |
Headers | show |
----- Original Message ----- > From: ZhuangYanying <ann.zhuangyanying@huawei.com> > > Signed-off-by: Zhuang Yanying <ann.zhuangyanying@huawei.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> > --- > hw/misc/ivshmem.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index b897685..abeaf3d 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -1045,6 +1045,7 @@ static void ivshmem_plain_init(Object *obj) > ivshmem_check_memdev_is_busy, > OBJ_PROP_LINK_UNREF_ON_RELEASE, > &error_abort); > + s->not_legacy_32bit = 1; > } > > static void ivshmem_plain_realize(PCIDevice *dev, Error **errp) > @@ -1116,6 +1117,7 @@ static void ivshmem_doorbell_init(Object *obj) > > s->features |= (1 << IVSHMEM_MSI); > s->legacy_size = SIZE_MAX; /* whatever the server sends */ > + s->not_legacy_32bit = 1; > } > > static void ivshmem_doorbell_realize(PCIDevice *dev, Error **errp) > -- > 1.8.3.1 > > >
> > Subject: [PATCH v2 2/2] ivshmem: set not_legacy_32bit to 1 for > ivshmem_doorbell and ivshmem-plain > > From: ZhuangYanying <ann.zhuangyanying@huawei.com> > > Signed-off-by: Zhuang Yanying <ann.zhuangyanying@huawei.com> > --- > hw/misc/ivshmem.c | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Gonglei <arei.gonglei@huawei.com> > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index b897685..abeaf3d 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -1045,6 +1045,7 @@ static void ivshmem_plain_init(Object *obj) > ivshmem_check_memdev_is_busy, > OBJ_PROP_LINK_UNREF_ON_RELEASE, > &error_abort); > + s->not_legacy_32bit = 1; > } > > static void ivshmem_plain_realize(PCIDevice *dev, Error **errp) > @@ -1116,6 +1117,7 @@ static void ivshmem_doorbell_init(Object *obj) > > s->features |= (1 << IVSHMEM_MSI); > s->legacy_size = SIZE_MAX; /* whatever the server sends */ > + s->not_legacy_32bit = 1; > } > > static void ivshmem_doorbell_realize(PCIDevice *dev, Error **errp) > -- > 1.8.3.1 >
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index b897685..abeaf3d 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -1045,6 +1045,7 @@ static void ivshmem_plain_init(Object *obj) ivshmem_check_memdev_is_busy, OBJ_PROP_LINK_UNREF_ON_RELEASE, &error_abort); + s->not_legacy_32bit = 1; } static void ivshmem_plain_realize(PCIDevice *dev, Error **errp) @@ -1116,6 +1117,7 @@ static void ivshmem_doorbell_init(Object *obj) s->features |= (1 << IVSHMEM_MSI); s->legacy_size = SIZE_MAX; /* whatever the server sends */ + s->not_legacy_32bit = 1; } static void ivshmem_doorbell_realize(PCIDevice *dev, Error **errp)