mirror of
https://github.com/torvalds/linux.git
synced 2024-09-23 08:23:44 +00:00
xen: fix for 4.17-rc5
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRTLbB6QfY48x44uB6AXGG7T9hjvgUCWvV2WQAKCRCAXGG7T9hj vvV1AQD/mqwRavel82e8JiMosoqrpZWwZ4uK2m7DhhIGhdyuegEAjmqzkjYSInrA 0A7FeFH2Wl1nYiKBl8ppvAd2GOkbbws= =kcKL -----END PGP SIGNATURE----- Merge tag 'for-linus-4.17-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip Pull xen fix from Juergen Gross: "One fix for the kernel running as a fully virtualized guest using PV drivers on old Xen hypervisor versions" * tag 'for-linus-4.17-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: x86/xen: Reset VCPU0 info pointer after shared_info remap
This commit is contained in:
commit
84c3a0979c
|
@ -65,6 +65,19 @@ static void __init xen_hvm_init_mem_mapping(void)
|
||||||
{
|
{
|
||||||
early_memunmap(HYPERVISOR_shared_info, PAGE_SIZE);
|
early_memunmap(HYPERVISOR_shared_info, PAGE_SIZE);
|
||||||
HYPERVISOR_shared_info = __va(PFN_PHYS(shared_info_pfn));
|
HYPERVISOR_shared_info = __va(PFN_PHYS(shared_info_pfn));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The virtual address of the shared_info page has changed, so
|
||||||
|
* the vcpu_info pointer for VCPU 0 is now stale.
|
||||||
|
*
|
||||||
|
* The prepare_boot_cpu callback will re-initialize it via
|
||||||
|
* xen_vcpu_setup, but we can't rely on that to be called for
|
||||||
|
* old Xen versions (xen_have_vector_callback == 0).
|
||||||
|
*
|
||||||
|
* It is, in any case, bad to have a stale vcpu_info pointer
|
||||||
|
* so reset it now.
|
||||||
|
*/
|
||||||
|
xen_vcpu_info_reset(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init init_hvm_pv_info(void)
|
static void __init init_hvm_pv_info(void)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user