* [RFC] Enable _OSI(Linux) for Xen HVM domains
@ 2007-11-06 17:00 Alex Williamson
2007-11-06 17:18 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2007-11-06 17:00 UTC (permalink / raw)
To: xen-devel
I'd like to send this patch to upstream lkml/linux-acpi, but I want to
make sure that the x86 side wants this too. The _OSI method is a way
for platform ACPI firmware to determine the features and capabilities of
the OS running on the system. This is usually done by calling the _OSI
method with various strings in the _INI method of an ACPI device. The
strings are things like "Linux" or "Windows". ACPI may set internal
variables and adjust code paths based on the ACPI compatibility reported
by this method. The act of ack'ing or nak'ing an OS compatibility is
the job of the OSL layer.
Until recent Linux kernel versions, Linux would respond true to both
"Linux" and "Windows", indicating the ACPI layers are compatible with
both. Recent version of Linux no longer respond true by default to
_OSI(Linux) calls. The idea is that most BIOS vendors consider Linux an
after thought. The few that do check for Linux compatibility probably
don't test those code paths nearly as well for Linux as they do for
Windows. Therefore, rather than fight broken ACPI, it's easier to only
report Windows compatibility and have a known good code path through the
BIOS code, and fix the Linux ACPI subsystem where needed.
Things are a bit different for Xen HVM domains. Both the OS and the
BIOS code are open source, and (IMHO) there's no reason a Linux guest
shouldn't acknowledge Linux compatibility when running on Xen. On ia64,
we're actually using this information to make some optimizations in the
hypervisor for handling the guest. The mechanism to enable a positive
response to _OSI(Linux) is a simple DMI hook with fields generated from
the SMBIOS table, which both x86 and ia64 Xen provide to HVM domains.
Please let me know if there are any comments or objections to submitting
this upstream. Thanks,
Alex
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
--
diff -r c7f1be4e5832 drivers/acpi/osl.c
--- a/drivers/acpi/osl.c Thu Nov 01 12:09:33 2007 -0700
+++ b/drivers/acpi/osl.c Fri Nov 02 15:30:23 2007 -0700
@@ -1225,6 +1225,14 @@ static struct dmi_system_id acpi_osl_dmi
DMI_MATCH(DMI_BOARD_NAME, "MPAD-MSAE Customer Reference Boards"),
},
},
+ {
+ .callback = dmi_osi_linux,
+ .ident = "Xen HVM domU",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Xen"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HVM domU"),
+ },
+ },
{}
};
#endif /* CONFIG_DMI */
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [RFC] Enable _OSI(Linux) for Xen HVM domains
2007-11-06 17:00 [RFC] Enable _OSI(Linux) for Xen HVM domains Alex Williamson
@ 2007-11-06 17:18 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2007-11-06 17:18 UTC (permalink / raw)
To: Alex Williamson, xen-devel
On 6/11/07 17:00, "Alex Williamson" <alex.williamson@hp.com> wrote:
> Things are a bit different for Xen HVM domains. Both the OS and the
> BIOS code are open source, and (IMHO) there's no reason a Linux guest
> shouldn't acknowledge Linux compatibility when running on Xen. On ia64,
> we're actually using this information to make some optimizations in the
> hypervisor for handling the guest. The mechanism to enable a positive
> response to _OSI(Linux) is a simple DMI hook with fields generated from
> the SMBIOS table, which both x86 and ia64 Xen provide to HVM domains.
> Please let me know if there are any comments or objections to submitting
> this upstream. Thanks,
Sounds perfectly reasonable to me.
-- Keir
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-06 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-06 17:00 [RFC] Enable _OSI(Linux) for Xen HVM domains Alex Williamson
2007-11-06 17:18 ` Keir Fraser
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.