Re: [PATCH] KVM: x86: don't expose syscall/sysret to intel 32-bit guest

From: Wanpeng Li
Date: Wed Nov 25 2015 - 07:45:38 EST


2015-11-19 19:05 GMT+08:00 Paolo Bonzini <pbonzini@xxxxxxxxxx>:
>
> 1) Clear F(SYSCALL) in kvm_update_cpuid, like you are doing here but
> only if F(LM) is already clear (in addition to the vendor being Intel).

It seems that F(LM) is always set in the case of qemu-system-x86_64 w/
32-bit guest, vmware also exposes LM bit to 32 bit guest(however it
doesn't expose syscall/sysret), so maybe we can't depend on F(LM).

Regards,
Wanpeng Li
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/