Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull KVM fixes from Paolo Bonzini:
"Just two very small & simple patches"

* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: MTRR: Use default type for non-MTRR-covered gfn before WARN_ON
KVM: s390: Fix hang VCPU hang/loop regression

+6 -6
+2 -2
arch/s390/kvm/kvm-s390.c
··· 1742 1742 1743 1743 static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu) 1744 1744 { 1745 - if (!vcpu->requests) 1746 - return 0; 1747 1745 retry: 1748 1746 kvm_s390_vcpu_request_handled(vcpu); 1747 + if (!vcpu->requests) 1748 + return 0; 1749 1749 /* 1750 1750 * We use MMU_RELOAD just to re-arm the ipte notifier for the 1751 1751 * guest prefix page. gmap_ipte_notify will wait on the ptl lock.
+4 -4
arch/x86/kvm/mtrr.c
··· 672 672 if (iter.mtrr_disabled) 673 673 return mtrr_disabled_type(); 674 674 675 + /* not contained in any MTRRs. */ 676 + if (type == -1) 677 + return mtrr_default_type(mtrr_state); 678 + 675 679 /* 676 680 * We just check one page, partially covered by MTRRs is 677 681 * impossible. 678 682 */ 679 683 WARN_ON(iter.partial_map); 680 - 681 - /* not contained in any MTRRs. */ 682 - if (type == -1) 683 - return mtrr_default_type(mtrr_state); 684 684 685 685 return type; 686 686 }