qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

acpi: move ACPI_PORT_SMI_CMD define to header it belongs to

ACPI_PORT_SMI_CMD is alias for APM_CNT_IOPORT,
so make it really one instead of duplicating its value.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Igor Mammedov and committed by
Michael S. Tsirkin
f8eaef67 d0384d90

+3 -3
-2
hw/i386/acpi-build.c
··· 255 255 NULL)); 256 256 } 257 257 258 - #define ACPI_PORT_SMI_CMD 0x00b2 /* TODO: this is APM_CNT_IOPORT */ 259 - 260 258 static void acpi_align_size(GArray *blob, unsigned align) 261 259 { 262 260 /* Align size to multiple of given size. This reduces the chance
-1
hw/isa/apm.c
··· 34 34 #endif 35 35 36 36 /* fixed I/O location */ 37 - #define APM_CNT_IOPORT 0xb2 38 37 #define APM_STS_IOPORT 0xb3 39 38 40 39 static void apm_ioport_writeb(void *opaque, hwaddr addr, uint64_t val,
+3
include/hw/isa/apm.h
··· 5 5 #include "hw/hw.h" 6 6 #include "exec/memory.h" 7 7 8 + #define APM_CNT_IOPORT 0xb2 9 + #define ACPI_PORT_SMI_CMD APM_CNT_IOPORT 10 + 8 11 typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg); 9 12 10 13 typedef struct APMState {