Re: [PATCH] KVM: x86: remove vcpu's CPL check in host invoked vcpu's xcr set process

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

 



Il 14/06/2013 09:36, Zhanghaoyu (A) ha scritto:
> __kvm_set_xcr function does the CPL check when set xcr. __kvm_set_xcr is called in two flows,
> one is invoked by guest, call stack shown as below,
> handle_xsetbv(or xsetbv_interception)
>   kvm_set_xcr
>     __kvm_set_xcr
> the other one is invoked by host(QEMU), call stack shown as below,
> kvm_arch_vcpu_ioctl
>   kvm_vcpu_ioctl_x86_set_xcrs
>     __kvm_set_xcr
> 
> The former does need the CPL check, but the latter does not.
> 
> Signed-off-by: Zhang Haoyu <haoyu.zhang@xxxxxxxxxx>

What does this patch fix?  I suppose it is some kind of migration
problem since you mentioned QEMU, but I'd rather be sure.  I can fix the
commit message myself when applying.

Thanks,

Paolo
--
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