mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
xen: branch for v7.0-rc1a
-----BEGIN PGP SIGNATURE----- iJEEABYKADkWIQRTLbB6QfY48x44uB6AXGG7T9hjvgUCaZhVCxsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMSwyLDIACgkQgFxhu0/YY76yoQEAwj/Gb2HWrdsTAUl0yyiz 4Riaj+QiMEmN4nF9zSTz+mUBAMd744dw1tZ0wnZMVlyfXc36nff3thmaIzeIIR9v XSAF =oYR7 -----END PGP SIGNATURE----- Merge tag 'for-linus-7.0-rc1a-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip Pull xen fix from Juergen Gross: "A single patch fixing a boot regression when running as a Xen PV guest. This issue was introduced in this merge window" * tag 'for-linus-7.0-rc1a-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: x86/xen: Fix Xen PV guest boot
This commit is contained in:
commit
c8cb804a8a
|
|
@ -509,6 +509,9 @@ static pgd_t *xen_get_user_pgd(pgd_t *pgd)
|
|||
unsigned offset = pgd - pgd_page;
|
||||
pgd_t *user_ptr = NULL;
|
||||
|
||||
if (!static_branch_likely(&xen_struct_pages_ready))
|
||||
return NULL;
|
||||
|
||||
if (offset < pgd_index(USER_LIMIT)) {
|
||||
struct page *page = virt_to_page(pgd_page);
|
||||
user_ptr = (pgd_t *)page->private;
|
||||
|
|
@ -1098,7 +1101,8 @@ static void __init xen_cleanmfnmap_free_pgtbl(void *pgtbl, bool unpin)
|
|||
|
||||
if (unpin)
|
||||
pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, PFN_DOWN(pa));
|
||||
ClearPagePinned(virt_to_page(__va(pa)));
|
||||
if (static_branch_likely(&xen_struct_pages_ready))
|
||||
ClearPagePinned(virt_to_page(__va(pa)));
|
||||
xen_free_ro_pages(pa, PAGE_SIZE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user