mbox series

[0/2] Make PAMMemoryRegion less Intel-specific

Message ID 20240309134056.1605-1-shentey@gmail.com (mailing list archive)
Headers show
Series Make PAMMemoryRegion less Intel-specific | expand

Message

Bernhard Beschow March 9, 2024, 1:40 p.m. UTC
This series makes pam_update() more self-contained by removing some Intel
assumptions. As a result, the purpose of PAMMemoryRegion becomes clearer and, as
a side effect, makes it reusable for northbridges other than Intel, e.g. VIA.

Testing done:
* `make check`
* `make check-avocado`
* This series is sent from a VM implementing this series.

Bernhard Beschow (2):
  hw/pci-host/pam: Free PAMMemoryRegion from Intel-specific bit handling
  hw/pci-host/pam: Remove northbridge-specific PAM_REGIONS_COUNT

 include/hw/pci-host/i440fx.h |  4 +++-
 include/hw/pci-host/pam.h    |  9 +++------
 include/hw/pci-host/q35.h    |  4 +++-
 hw/pci-host/i440fx.c         |  7 +++++--
 hw/pci-host/pam.c            | 14 +++++++-------
 hw/pci-host/q35.c            |  7 ++++---
 6 files changed, 25 insertions(+), 20 deletions(-)