~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to arch/x86/kvm/x86.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
558
558
        if (index != XCR_XFEATURE_ENABLED_MASK)
559
559
                return 1;
560
560
        xcr0 = xcr;
561
 
        if (kvm_x86_ops->get_cpl(vcpu) != 0)
562
 
                return 1;
563
561
        if (!(xcr0 & XSTATE_FP))
564
562
                return 1;
565
563
        if ((xcr0 & XSTATE_YMM) && !(xcr0 & XSTATE_SSE))
573
571
 
574
572
int kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)
575
573
{
576
 
        if (__kvm_set_xcr(vcpu, index, xcr)) {
 
574
        if (kvm_x86_ops->get_cpl(vcpu) != 0 ||
 
575
            __kvm_set_xcr(vcpu, index, xcr)) {
577
576
                kvm_inject_gp(vcpu, 0);
578
577
                return 1;
579
578
        }