diff mbox series

[3/3] virtio pmem: remove transational device info

Message ID 20190712073554.21918-4-pagupta@redhat.com
State New
Headers show
Series virtio pmem: coverity fixes | expand

Commit Message

Pankaj Gupta July 12, 2019, 7:35 a.m. UTC
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(-)

Comments

Cornelia Huck July 12, 2019, 10:03 a.m. UTC | #1
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>
Pankaj Gupta July 12, 2019, 10:06 a.m. UTC | #2
> 
> 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>
>
David Hildenbrand July 15, 2019, 6:44 a.m. UTC | #3
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,
>
Pankaj Gupta July 15, 2019, 7:22 a.m. UTC | #4
> 
> 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
>
David Hildenbrand July 15, 2019, 7:25 a.m. UTC | #5
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 mbox series

Patch

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,