Skip to contentSkip to conversation

pci, vhost fixes

GIT PULL NAK Michael S. Tsirkin 4 participants 11 messages May 30, 2010 – Jun 1, 2010

lore
Share & tools
lore
#0 lore raw

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Isaku Yamahata (4):
pci: clean up of pci_set_default_subsystem_id().
pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
msix: remove duplicated defines.

Michael S. Tsirkin (1):

      vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2
 hw/msix.c      |    8 --------
 hw/pci.c       |   12 +++++-------
 hw/pci.h       |   15 ++-------------
 hw/vhost_net.c |    2 +-
 4 files changed, 8 insertions(+), 29 deletions(-)
Signature · 1 line
MST
#1 lore raw
Quoted 7 lines · Michael S. Tsirkin

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

 lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Quoted 8 lines

Isaku Yamahata (4):
     pci: clean up of pci_set_default_subsystem_id().
     pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
     msix: remove duplicated defines.

Michael S. Tsirkin (1):
     vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

Nack, see 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb.

#2 lore raw
Quoted 14 lines · Blue Swirl
Quoted 13 lines · Michael S. Tsirkin

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

 lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Isaku Yamahata (4):
     pci: clean up of pci_set_default_subsystem_id().
     pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
     msix: remove duplicated defines.

Quoted 4 lines
Quoted 2 lines

Michael S. Tsirkin (1):
     vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

Nack, see 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb.

Did you follow the discussion about that patch before applying? 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb does not make sense to me, I think it should be reverted.
we have long long value, let us just print with %ll. casting to uint64 and printing with PRi64 is silly.

Signature · 1 line
MST
#3 lore raw
Quoted 18 lines · Michael S. Tsirkin
Quoted 17 lines · Blue Swirl
Quoted 15 lines · Michael S. Tsirkin

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

 lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Isaku Yamahata (4):
     pci: clean up of pci_set_default_subsystem_id().
     pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
     msix: remove duplicated defines.

Michael S. Tsirkin (1):
     vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

Quoted 7 lines
Quoted 1 line

Nack, see 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb.

Did you follow the discussion about that patch before applying? 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb does not make sense to me, I think it should be reverted.
we have long long value, let us just print with %ll. casting to uint64 and printing with PRi64 is silly.

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

#4 lore raw
Quoted 21 lines · Blue Swirl
Quoted 20 lines · Michael S. Tsirkin
Quoted 18 lines · Blue Swirl
Quoted 7 lines · Michael S. Tsirkin

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

 lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Quoted 8 lines

Isaku Yamahata (4):
     pci: clean up of pci_set_default_subsystem_id().
     pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
     msix: remove duplicated defines.

Michael S. Tsirkin (1):
     vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

Nack, see 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb.

Quoted 8 lines
Quoted 5 lines

Did you follow the discussion about that patch before applying? 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb does not make sense to me, I think it should be reverted.
we have long long value, let us just print with %ll. casting to uint64 and printing with PRi64 is silly.

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

Ho hum. As long as enough people got annoyed, there was hope that debian will upodate their mingw port. I guess if everyone works around this in code no one'll bother. Oh well, not important enough to care.

Signature · 1 line
MST
#5 lore raw
Quoted 28 lines · Michael S. Tsirkin
Quoted 27 lines · Blue Swirl
Quoted 25 lines · Michael S. Tsirkin
Quoted 14 lines · Blue Swirl
Quoted 13 lines · Michael S. Tsirkin

The following changes since commit 259d5577ae546de27e25a40710f81aa031660de8:

 lsi: Fix value overflow in request tag processing (2010-05-22 15:32:32 +0200)

are available in the git repository at:
 git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci

Isaku Yamahata (4):
     pci: clean up of pci_set_default_subsystem_id().
     pci: add const to pci_is_express(), pci_config_size(). pci.h: remove unused constants.
     msix: remove duplicated defines.

Quoted 4 lines
Quoted 2 lines

Michael S. Tsirkin (1):
     vhost: fix build broken by 0bfcd599e3f5c5679cc7d0165a0a1822e2f60de2

Nack, see 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb.

Did you follow the discussion about that patch before applying? 29f91781bd300b228d9c38b9f6c1e0b6a38f25fb does not make sense to me, I think it should be reverted.
we have long long value, let us just print with %ll. casting to uint64 and printing with PRi64 is silly.

Quoted 6 lines
Quoted 2 lines

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

Ho hum. As long as enough people got annoyed, there was hope that debian will upodate their mingw port. I guess if everyone works around this in code no one'll bother.  Oh well, not important enough to care.

To make things even more annoying, mingw gcc from Debian stable (4.2.1-sjlj) gives no warnings, the warnings came from the updated compiler (4.4.2) of the future release. So we'll be stuck with the warnings for a looong time. :-(

#6 lore raw
In reply to Blue Swirl
Quoted 2 lines · Blue Swirl

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

How does mingw matter for vhost-net specific code?

Paolo

#7 lore raw
Quoted 7 lines · Paolo Bonzini
Quoted 2 lines · Blue Swirl

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

How does mingw matter for vhost-net specific code?

Paolo

Good point. That code is linux-only, so we are safe using %lld. By the time someone ports vhost to windows, there's a chance debian will update it's mingw. Blue Swirl?

Signature · 1 line
MST
#8 lore raw
Quoted 5 lines · Michael S. Tsirkin
Quoted 4 lines · Paolo Bonzini
Quoted 2 lines · Blue Swirl

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

Quoted 7 lines
Quoted 3 lines

How does mingw matter for vhost-net specific code?

Paolo

Good point. That code is linux-only, so we are safe using %lld. By the time someone ports vhost to windows, there's a chance debian will update it's mingw.  Blue Swirl?

It's a good point, but there's also consistency: now no '%ll*' formats are used.

#9 lore raw
Quoted 8 lines · Blue Swirl
Quoted 7 lines · Michael S. Tsirkin
Quoted 6 lines · Paolo Bonzini
Quoted 2 lines · Blue Swirl

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

How does mingw matter for vhost-net specific code?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Paolo

Good point. That code is linux-only, so we are safe using %lld. By the time someone ports vhost to windows, there's a chance debian will update it's mingw.  Blue Swirl?

It's a good point, but there's also consistency: now no '%ll*' formats are used.

If it ain't broke, don't fix it. Especially not when the fix is ugly.

#10 lore raw
Quoted 12 lines · Markus Armbruster
Quoted 10 lines · Blue Swirl
Quoted 9 lines · Michael S. Tsirkin
Quoted 7 lines · Paolo Bonzini
Quoted 2 lines · Blue Swirl

We have PRI*64 just for this purpose, so let's use them. The discussion about that was earlier.

How does mingw matter for vhost-net specific code?

Paolo

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Good point. That code is linux-only, so we are safe using %lld. By the time someone ports vhost to windows, there's a chance debian will update it's mingw.  Blue Swirl?

It's a good point, but there's also consistency: now no '%ll*' formats are used.

If it ain't broke, don't fix it.  Especially not when the fix is ugly.

Fully agree. But because beauty is in the eye of the beholder, our conclusions are probably different. ;-)