Enable HVM guest VT-d device hotplug via a simple ACPI hotplug device model.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Xen staging patchbot-unstable
# HG changeset patch
# User Keir Fraser <[email protected]>
# Date 1203084797 0
# Node IDc6eeb71a85cffe917bc8d6738fd36e6694dba4d6
# Parent29c03bc32d3e16103e9cc48260ab83317662a93e
Enable HVM guest VT-d device hotplug via a simple ACPI hotplug device model.
...
Quoted 5 lines
diff -r
29c03bc32d3e-rc6eeb71a85cfxen/include/public/hvm/ioreq.hxen/include/public/hvm/ioreq.h +0
-0@@ -118,6 +118,11 @@ struct buffered_piopage {#define ACPI_PM1A_EVT_BLK_ADDRESS 0x0000000000001f40
xen/include/public/hvm/ioreq.h struct buffered_piopage { · line 128
Quoted 10 lines
xen/include/public/hvm/ioreq.h +5
-0#define ACPI_PM1A_CNT_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x04)#define ACPI_PM_TMR_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x08) + +#define ACPI_GPE0_BLK_ADDRESS (ACPI_PM_TMR_BLK_ADDRESS + 0x20) + +#define ACPI_GPE0_BLK_LEN 0x08 +#endif /* defined(__i386__) || defined(__x86_64__) */ #endif /* _IOREQ_H_ */
This makes use of some macros that are only defined for i386/x86_64,
so the ia64 build fails on piix4acpi.c. However, I'm not sure why these are x86 only, and the cset that made them x86 only doesn't appear to have any dependency on them. Things seem to work fine if we enable these for everyone. Thanks,
Alex
--
xen/include/public/hvm/ioreq.h +0 -3
@@ -114,7 +114,6 @@ struct buffered_piopage { };#endif /* defined(__ia64__) */ -#if defined(__i386__) || defined(__x86_64__)#define ACPI_PM1A_EVT_BLK_ADDRESS 0x0000000000001f40#define ACPI_PM1A_CNT_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x04)#define ACPI_PM_TMR_BLK_ADDRESS (ACPI_PM1A_EVT_BLK_ADDRESS + 0x08)
@@ -122,8 +121,6 @@ struct buffered_piopage {#define ACPI_GPE0_BLK_ADDRESS (ACPI_PM_TMR_BLK_ADDRESS + 0x20)#define ACPI_GPE0_BLK_LEN 0x08 - -#endif /* defined(__i386__) || defined(__x86_64__) */ #endif /* _IOREQ_H_ */
Quoted 5 lines · Alex Williamson
This makes use of some macros that are only defined for i386/x86_64,
so the ia64 build fails onpiix4acpi.c. However, I'm not sure why these are x86 only, and the cset that made them x86 only doesn't appear to have any dependency on them. Things seem to work fine if we enable these for everyone. Thanks,
Hmmm... they're x86-specific because they define x86-specific i/o port addresses. It may be nicer to more clearly separate out the x86-specific code that uses these macros. I'll take a look.
-- Keir
Quoted 11 lines · Keir Fraser
Quoted 5 lines · Alex Williamson
This makes use of some macros that are only defined for i386/x86_64,
so the ia64 build fails onpiix4acpi.c. However, I'm not sure why these are x86 only, and the cset that made them x86 only doesn't appear to have any dependency on them. Things seem to work fine if we enable these for everyone. Thanks,Hmmm... they're x86-specific because they define x86-specific i/o port addresses. It may be nicer to more clearly separate out the x86-specific code that uses these macros. I'll take a look.
That was my initial thought too, but 12390:430e06e2aa08 is the change
that set the PM1A_EVT_BLK_ADDRESS to it's current value, and it indicates it's for ia64. So my guess was that we both have this at the same address. I'm not sure why cset 12390 doesn't make use of the macro with the acpi_map() call it makes though.
Alex
Signature · 1 line
Alex Williamson HP Open Source & Linux Org.
Quoted 9 lines · Alex Williamson
Quoted 3 lines
Hmmm... they're x86-specific because they define x86-specific i/o port addresses. It may be nicer to more clearly separate out the x86-specific code that uses these macros. I'll take a look.
That was my initial thought too, but 12390:430e06e2aa08 is the change
that set thePM1A_EVT_BLK_ADDRESSto it's current value, and it indicates it's for ia64. So my guess was that we both have this at the same address. I'm not sure why cset 12390 doesn't make use of the macro with theacpi_map()call it makes though.
Ah, okay.
-- Keir