Re: [PATCH uq/master] KVM: x86: fix typo in KVM_GET_XCRS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 17, 2013 at 04:47:52PM +0200, Paolo Bonzini wrote:
> Only the first item of the array was ever looked at.  No
> practical effect, but still worth fixing.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Applied, thanks.

> ---
>  target-i386/kvm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 749aa09..27071e3 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -1314,8 +1314,8 @@ static int kvm_get_xcrs(X86CPU *cpu)
>  
>      for (i = 0; i < xcrs.nr_xcrs; i++) {
>          /* Only support xcr0 now */
> -        if (xcrs.xcrs[0].xcr == 0) {
> -            env->xcr0 = xcrs.xcrs[0].value;
> +        if (xcrs.xcrs[i].xcr == 0) {
> +            env->xcr0 = xcrs.xcrs[i].value;
>              break;
>          }
>      }
> -- 
> 1.8.3.1

--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux