Dong, Eddie wrote:
Avi Kivity wrote:
Dong, Eddie wrote:
struct vcpu_svm *svm = to_svm(vcpu);
#ifdef CONFIG_X86_64
- if (vcpu->arch.shadow_efer & EFER_LME) {
+ if (is_long_mode(vcpu)) {
is_long_mode() actually tests EFER_LMA, so this is incorrect.
Something missing? Here is the definition of is_long_mode, the patch is just for equal replacement.
thx, eddie
static inline int is_long_mode(struct kvm_vcpu *vcpu)
{
#ifdef CONFIG_X86_64
return vcpu->arch.shadow_efer & EFER_LME;
#else
return 0;
#endif
}
You're looking at an old version. Mine has EFER_LMA. See 9d642b.
--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html