Re: [PATCH v3 02/26] KVM: Split cpuid register access from computation

2012-07-04 Thread Avi Kivity
On 07/03/2012 08:34 PM, Marcelo Tosatti wrote: > On Wed, Jun 27, 2012 at 06:24:50PM +0300, Avi Kivity wrote: >> Introduce kvm_cpuid() to perform the leaf limit check and calculate >> register values, and let kvm_emulate_cpuid() just handle reading and >> writing the registers from/to the vcpu. Thi

Re: [PATCH v3 02/26] KVM: Split cpuid register access from computation

2012-07-03 Thread Marcelo Tosatti
On Wed, Jun 27, 2012 at 06:24:50PM +0300, Avi Kivity wrote: > Introduce kvm_cpuid() to perform the leaf limit check and calculate > register values, and let kvm_emulate_cpuid() just handle reading and > writing the registers from/to the vcpu. This allows us to reuse > kvm_cpuid() in a context wher

[PATCH v3 02/26] KVM: Split cpuid register access from computation

2012-06-27 Thread Avi Kivity
Introduce kvm_cpuid() to perform the leaf limit check and calculate register values, and let kvm_emulate_cpuid() just handle reading and writing the registers from/to the vcpu. This allows us to reuse kvm_cpuid() in a context where directly reading and writing registers is not desired. Signed-off