[Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-09-17 Thread Paolo Bonzini
Add code to convert the VMX feature words back into MSR values, allowing the user to enable/disable VMX features as they wish. The same infrastructure enables support for limiting VMX features in named CPU models. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 225

Re: [Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-05 Thread Paolo Bonzini
On 06/07/19 00:33, Eduardo Habkost wrote: > Oh, that's the info I was missing. I always expected > kvm_arch_get_supported_*() to be subject to change (depending on > KVM and hardware capabilities), and not be part of guest ABI. For most bits that's true. Just not for these ones, because they are

Re: [Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-05 Thread Eduardo Habkost
On Sat, Jul 06, 2019 at 12:42:22AM +0200, Paolo Bonzini wrote: > On 06/07/19 00:33, Eduardo Habkost wrote: > > Oh, that's the info I was missing. I always expected > > kvm_arch_get_supported_*() to be subject to change (depending on > > KVM and hardware capabilities), and not be part of guest ABI.

Re: [Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-05 Thread Eduardo Habkost
On Sat, Jul 06, 2019 at 12:12:49AM +0200, Paolo Bonzini wrote: > On 05/07/19 23:22, Eduardo Habkost wrote: > >> +switch (index) { > >> +case MSR_IA32_VMX_TRUE_PINBASED_CTLS: > >> +default1 = 0x0016; > >> +break; > >> +case MSR_IA32_VMX_TRUE_PROCBASED_CTLS: > >> +

Re: [Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-05 Thread Paolo Bonzini
On 05/07/19 23:22, Eduardo Habkost wrote: >> +switch (index) { >> +case MSR_IA32_VMX_TRUE_PINBASED_CTLS: >> +default1 = 0x0016; >> +break; >> +case MSR_IA32_VMX_TRUE_PROCBASED_CTLS: >> +default1 = 0x0401e172; >> +break; >> +case MSR_IA32_VMX_TRUE_

Re: [Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-05 Thread Eduardo Habkost
On Tue, Jul 02, 2019 at 05:01:20PM +0200, Paolo Bonzini wrote: > Add code to convert the VMX feature words back into MSR values, > allowing the user to enable/disable VMX features as they wish. The same > infrastructure enables support for limiting VMX features in named > CPU models. > > Signed-o

[Qemu-devel] [PATCH 6/7] target/i386: add VMX features

2019-07-02 Thread Paolo Bonzini
Add code to convert the VMX feature words back into MSR values, allowing the user to enable/disable VMX features as they wish. The same infrastructure enables support for limiting VMX features in named CPU models. Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 221