All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit ef0b4142 authored by Tim Deegan's avatar Tim Deegan

x86_64: fix error checking in arch_set_info_guest()

Cannot specify user mode execution without specifying user-mode
pagetables.
Signed-off-by: default avatarTim Deegan <Tim.Deegan@citrix.com>
Acked-by: default avatarKeir Fraser <keir@xen.org>
parent f10b5175
......@@ -820,6 +820,11 @@ int arch_set_info_guest(
v->arch.guest_table_user = pagetable_from_pfn(cr3_pfn);
}
else if ( !(flags & VGCF_in_kernel) )
{
destroy_gdt(v);
return -EINVAL;
}
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment