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

Avi Kivity
2009-09-16T21:24:46Z

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.