2018-01-10 0:08 GMT+08:00 Paolo Bonzini :
> Oops, I missed these.
>
> On 09/01/2018 15:22, Konrad Rzeszutek Wilk wrote:
>>> +if (have_spec_ctrl) {
>>> +rdmsrl(MSR_IA32_SPEC_CTRL, svm->spec_ctrl);
>>> +if (svm->spec_ctrl != 0)
>> Perhaps just :
>>
>> if (svm->spec_c
On 10/01/2018 21:13, Tom Lendacky wrote:
> On 1/9/2018 6:03 AM, Paolo Bonzini wrote:
>> Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is important
>> for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore guest
>> IBRS on VM entry and set it to 0 on VM exit (because Linux doe
On 1/9/2018 6:03 AM, Paolo Bonzini wrote:
> Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is important
> for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore guest
> IBRS on VM entry and set it to 0 on VM exit (because Linux does not use
> it yet).
>
> Signed-off-by: Paolo
- liran.a...@oracle.com wrote:
> - pbonz...@redhat.com wrote:
>
> > Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is
> > important
> > for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore
> > guest
> > IBRS on VM entry and set it to 0 on VM exit (because Linux do
- pbonz...@redhat.com wrote:
> Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is
> important
> for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore
> guest
> IBRS on VM entry and set it to 0 on VM exit (because Linux does not
> use
> it yet).
>
> Signed-off-by: Paolo
Oops, I missed these.
On 09/01/2018 15:22, Konrad Rzeszutek Wilk wrote:
>> +if (have_spec_ctrl) {
>> +rdmsrl(MSR_IA32_SPEC_CTRL, svm->spec_ctrl);
>> +if (svm->spec_ctrl != 0)
> Perhaps just :
>
> if (svm->spec_ctrl) ?
>
> And above too?
These will become != SPE
On 09/01/2018 15:22, Konrad Rzeszutek Wilk wrote:
>> +have_spec_ctrl = cpu_has_spec_ctrl();
>> +if (have_spec_ctrl)
>> +pr_info("kvm: SPEC_CTRL available\n");
>> +else
>> +pr_info("kvm: SPEC_CTRL not available\n");
> Perhaps just
>
> pr_info("kvm: SPEC_CTR
On Tue, Jan 09, 2018 at 01:03:08PM +0100, Paolo Bonzini wrote:
> Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is important
> for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore guest
> IBRS on VM entry and set it to 0 on VM exit (because Linux does not use
> it yet).
>
>
Direct access to MSR_IA32_SPEC_CTRL and MSR_IA32_PRED_CMD is important
for performance. Allow load/store of MSR_IA32_SPEC_CTRL, restore guest
IBRS on VM entry and set it to 0 on VM exit (because Linux does not use
it yet).
Signed-off-by: Paolo Bonzini
---
arch/x86/kvm/svm.c | 42 +++
9 matches
Mail list logo