• Juergen Gross's avatar
    xen: allow mapping ACPI data using a different physical address · 9221222c
    Juergen Gross authored
    When running as a Xen PV dom0 the system needs to map ACPI data of the
    host using host physical addresses, while those addresses can conflict
    with the guest physical addresses of the loaded linux kernel. The same
    problem might apply in case a PV guest is configured to use the host
    memory map.
    
    This conflict can be solved by mapping the ACPI data to a different
    guest physical address, but mapping the data via acpi_os_ioremap()
    must still be possible using the host physical address, as this
    address might be generated by AML when referencing some of the ACPI
    data.
    
    When configured to support running as a Xen PV domain, have an
    implementation of acpi_os_ioremap() being aware of the possibility to
    need above mentioned translation of a host physical address to the
    guest physical address.
    
    This modification requires to #include linux/acpi.h in some sources
    which need to include asm/acpi.h directly.
    Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
    Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
    Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
    9221222c
smpboot.c 36.3 KB