All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/4] pci: Various PCI BAR checks
@ 2016-11-29 14:48 Alexander Gordeev
  2016-11-29 14:48 ` [kvm-unit-tests PATCH 1/4] Move INVALID_PHYS_ADDR macro to lib/libcflat.h Alexander Gordeev
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Alexander Gordeev @ 2016-11-29 14:48 UTC (permalink / raw)
  To: kvm; +Cc: Alexander Gordeev, Thomas Huth, Andrew Jones

Hi Andrew,

I would consider making PCI BAR number an unsigned integer in all
existing APIs. But for now assert(bar_num >= 0 ...) is checked.

Sources are at https://github.com/a-gordeev/kvm-unit-tests.git pci-fixes

Cc: Thomas Huth <thuth@redhat.com>
Cc: Andrew Jones <drjones@redhat.com>

Alexander Gordeev (4):
  Move INVALID_PHYS_ADDR macro to lib/libcflat.h
  pci: Assert when PCI bus address can not be translated
  pci: Sanity check PCI device BAR numbers
  pci: Do not set or get addresses for unimplemented BARs

 lib/alloc.h            |  2 --
 lib/libcflat.h         |  1 +
 lib/pci-host-generic.c |  2 +-
 lib/pci.c              | 34 +++++++++++++++++++++++++++++-----
 4 files changed, 31 insertions(+), 8 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-12-22 13:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29 14:48 [kvm-unit-tests PATCH 0/4] pci: Various PCI BAR checks Alexander Gordeev
2016-11-29 14:48 ` [kvm-unit-tests PATCH 1/4] Move INVALID_PHYS_ADDR macro to lib/libcflat.h Alexander Gordeev
2016-11-30 12:36   ` Andrew Jones
2016-11-29 14:48 ` [kvm-unit-tests PATCH 2/4] pci: Assert when PCI bus address can not be translated Alexander Gordeev
2016-11-30 12:45   ` Andrew Jones
2016-11-29 14:48 ` [kvm-unit-tests PATCH 3/4] pci: Sanity check PCI device BAR numbers Alexander Gordeev
2016-11-30 13:25   ` Andrew Jones
2016-11-29 14:48 ` [kvm-unit-tests PATCH 4/4] pci: Do not set or get addresses for unimplemented BARs Alexander Gordeev
2016-11-30 13:47   ` Andrew Jones
2016-11-30 13:52     ` Andrew Jones
2016-11-30 13:57       ` Andrew Jones
2016-12-22 13:05 ` [kvm-unit-tests PATCH 0/4] pci: Various PCI BAR checks Andrew Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.