[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.10] tools/libxl: mark hvm mmio area as reserved in e820 map



>>> On 17.11.17 at 12:47, <jgross@xxxxxxxx> wrote:
> Make sure the HVM mmio area (especially console and Xenstore pages) is
> marked as "reserved" in the guest's E820 map, as otherwise conflicts
> might arise later, e.g. when hotplugging memory into the guest.

This is very certainly wrong. Have you looked at a couple of physical
machines? Have you found an E820_RESERVED area on any of them for
the MMIO hole? Two examples I can present right away:

<6>BIOS-e820: [mem 0x00000000c93f0000-0x00000000c9f8cfff] reserved
<6>BIOS-e820: [mem 0x00000000c9f8d000-0x00000000c9fdefff] ACPI data
<6>BIOS-e820: [mem 0x00000000c9fdf000-0x00000000cac82fff] ACPI NVS
<6>BIOS-e820: [mem 0x00000000cac83000-0x00000000cb172fff] reserved
<6>BIOS-e820: [mem 0x00000000cb173000-0x00000000cb173fff] usable
<6>BIOS-e820: [mem 0x00000000cb174000-0x00000000cb181fff] reserved
<6>BIOS-e820: [mem 0x00000000cb182000-0x00000000ccffffff] usable
<6>BIOS-e820: [mem 0x00000000cd000000-0x00000000cdffffff] reserved
<6>BIOS-e820: [mem 0x00000000d0000000-0x00000000dfffffff] reserved
<6>BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
<6>BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved

and

(XEN)  00000000cf4bd000 - 00000000cf4bf000 (reserved)
(XEN)  00000000cf4bf000 - 00000000cf636000 (usable)
(XEN)  00000000cf636000 - 00000000cf7bf000 (ACPI NVS)
(XEN)  00000000cf7bf000 - 00000000cf7df000 (usable)
(XEN)  00000000cf7df000 - 00000000cf7ff000 (ACPI data)
(XEN)  00000000cf7ff000 - 00000000cf800000 (usable)
(XEN)  00000000cf800000 - 00000000d0000000 (reserved)
(XEN)  00000000f8000000 - 00000000fd000000 (reserved)
(XEN)  00000000ffe00000 - 0000000100000000 (reserved)

Things covered by E820_RESERVED include the MCFG area, yes, but
not most other parts. The OS has to either be careful or consult
ACPI for further resource usage details. In particular, the ACPI spec
says

"The platform boot firmware does not return a range description for
 the memory mapping of PCI devices, ISA Option ROMs, and ISA Plug
 and Play cards because the OS has mechanisms available to detect
 them."

See the section "E820 Assumptions and Limitations" for further details.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.