Re: [PATCH 3/4] KVM: x86 shared msr infrastructure

From: Avi Kivity
Date: Wed Sep 16 2009 - 17:24:53 EST


On 09/17/2009 12:21 AM, Marcelo Tosatti wrote:
+static struct kvm_shared_msrs_global __read_mostly shared_msrs_global;
Does this assume the MSRs in question are consistent across CPUs?

Yes. And they are.

I guess that is not true with arch_prctl(ARCH_SET_GS/ARCH_GET_GS) ?

These aren't shared MSRs and are saved and restored independently.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
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/