Message ID | 20190712073554.21918-4-pagupta@redhat.com |
---|---|
State | New |
Headers | show |
Series | virtio pmem: coverity fixes | expand |
On Fri, 12 Jul 2019 13:05:54 +0530 Pankaj Gupta <pagupta@redhat.com> wrote: > Remove transactional & non transactional device info > for virtio pmem. s/device info/names/ ? > > Signed-off-by: Pankaj Gupta <pagupta@redhat.com> > --- > hw/virtio/virtio-pmem-pci.c | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Cornelia Huck <cohuck@redhat.com>
> > On Fri, 12 Jul 2019 13:05:54 +0530 > Pankaj Gupta <pagupta@redhat.com> wrote: > > > Remove transactional & non transactional device info > > for virtio pmem. > > s/device info/names/ ? yes. > > > > > Signed-off-by: Pankaj Gupta <pagupta@redhat.com> > > --- > > hw/virtio/virtio-pmem-pci.c | 2 -- > > 1 file changed, 2 deletions(-) > > Reviewed-by: Cornelia Huck <cohuck@redhat.com> >
On 12.07.19 09:35, Pankaj Gupta wrote: > Remove transactional & non transactional device info > for virtio pmem. Can you explain and add *why* ? > > Signed-off-by: Pankaj Gupta <pagupta@redhat.com> > --- > hw/virtio/virtio-pmem-pci.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/hw/virtio/virtio-pmem-pci.c b/hw/virtio/virtio-pmem-pci.c > index 0da6627469..fe2af00fa1 100644 > --- a/hw/virtio/virtio-pmem-pci.c > +++ b/hw/virtio/virtio-pmem-pci.c > @@ -113,8 +113,6 @@ static void virtio_pmem_pci_instance_init(Object *obj) > static const VirtioPCIDeviceTypeInfo virtio_pmem_pci_info = { > .base_name = TYPE_VIRTIO_PMEM_PCI, > .generic_name = "virtio-pmem-pci", > - .transitional_name = "virtio-pmem-pci-transitional", > - .non_transitional_name = "virtio-pmem-pci-non-transitional", > .instance_size = sizeof(VirtIOPMEMPCI), > .instance_init = virtio_pmem_pci_instance_init, > .class_init = virtio_pmem_pci_class_init, >
> > On 12.07.19 09:35, Pankaj Gupta wrote: > > Remove transactional & non transactional device info > > for virtio pmem. > > Can you explain and add *why* ? As per upstream suggestion by Cornelia & MST, transactional devices are for legacy purpose. So, does not make sense for virtio-pmem. Thanks, Pankaj > > > > > Signed-off-by: Pankaj Gupta <pagupta@redhat.com> > > --- > > hw/virtio/virtio-pmem-pci.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/hw/virtio/virtio-pmem-pci.c b/hw/virtio/virtio-pmem-pci.c > > index 0da6627469..fe2af00fa1 100644 > > --- a/hw/virtio/virtio-pmem-pci.c > > +++ b/hw/virtio/virtio-pmem-pci.c > > @@ -113,8 +113,6 @@ static void virtio_pmem_pci_instance_init(Object *obj) > > static const VirtioPCIDeviceTypeInfo virtio_pmem_pci_info = { > > .base_name = TYPE_VIRTIO_PMEM_PCI, > > .generic_name = "virtio-pmem-pci", > > - .transitional_name = "virtio-pmem-pci-transitional", > > - .non_transitional_name = "virtio-pmem-pci-non-transitional", > > .instance_size = sizeof(VirtIOPMEMPCI), > > .instance_init = virtio_pmem_pci_instance_init, > > .class_init = virtio_pmem_pci_class_init, > > > > > -- > > Thanks, > > David / dhildenb >
On 15.07.19 09:22, Pankaj Gupta wrote: > >> >> On 12.07.19 09:35, Pankaj Gupta wrote: >>> Remove transactional & non transactional device info >>> for virtio pmem. >> >> Can you explain and add *why* ? > > As per upstream suggestion by Cornelia & MST, transactional devices are for > legacy purpose. So, does not make sense for virtio-pmem. With something like that added to the description Reviewed-by: David Hildenbrand <david@redhat.com> > > Thanks, > Pankaj > >> >>> >>> Signed-off-by: Pankaj Gupta <pagupta@redhat.com> >>> --- >>> hw/virtio/virtio-pmem-pci.c | 2 -- >>> 1 file changed, 2 deletions(-) >>> >>> diff --git a/hw/virtio/virtio-pmem-pci.c b/hw/virtio/virtio-pmem-pci.c >>> index 0da6627469..fe2af00fa1 100644 >>> --- a/hw/virtio/virtio-pmem-pci.c >>> +++ b/hw/virtio/virtio-pmem-pci.c >>> @@ -113,8 +113,6 @@ static void virtio_pmem_pci_instance_init(Object *obj) >>> static const VirtioPCIDeviceTypeInfo virtio_pmem_pci_info = { >>> .base_name = TYPE_VIRTIO_PMEM_PCI, >>> .generic_name = "virtio-pmem-pci", >>> - .transitional_name = "virtio-pmem-pci-transitional", >>> - .non_transitional_name = "virtio-pmem-pci-non-transitional", >>> .instance_size = sizeof(VirtIOPMEMPCI), >>> .instance_init = virtio_pmem_pci_instance_init, >>> .class_init = virtio_pmem_pci_class_init, >>> >> >> >> -- >> >> Thanks, >> >> David / dhildenb >>
diff --git a/hw/virtio/virtio-pmem-pci.c b/hw/virtio/virtio-pmem-pci.c index 0da6627469..fe2af00fa1 100644 --- a/hw/virtio/virtio-pmem-pci.c +++ b/hw/virtio/virtio-pmem-pci.c @@ -113,8 +113,6 @@ static void virtio_pmem_pci_instance_init(Object *obj) static const VirtioPCIDeviceTypeInfo virtio_pmem_pci_info = { .base_name = TYPE_VIRTIO_PMEM_PCI, .generic_name = "virtio-pmem-pci", - .transitional_name = "virtio-pmem-pci-transitional", - .non_transitional_name = "virtio-pmem-pci-non-transitional", .instance_size = sizeof(VirtIOPMEMPCI), .instance_init = virtio_pmem_pci_instance_init, .class_init = virtio_pmem_pci_class_init,
Remove transactional & non transactional device info for virtio pmem. Signed-off-by: Pankaj Gupta <pagupta@redhat.com> --- hw/virtio/virtio-pmem-pci.c | 2 -- 1 file changed, 2 deletions(-)