Skip to content

Commit

Permalink
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Browse files Browse the repository at this point in the history
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
  • Loading branch information
torvalds committed Aug 5, 2015
2 parents 4e6b6ee + fc1a812 commit 4469942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions arch/s390/kvm/kvm-s390.c
Expand Up @@ -1742,10 +1742,10 @@ static bool ibs_enabled(struct kvm_vcpu *vcpu)

static int kvm_s390_handle_requests(struct kvm_vcpu *vcpu)
{
if (!vcpu->requests)
return 0;
retry:
kvm_s390_vcpu_request_handled(vcpu);
if (!vcpu->requests)
return 0;
/*
* We use MMU_RELOAD just to re-arm the ipte notifier for the
* guest prefix page. gmap_ipte_notify will wait on the ptl lock.
Expand Down
8 changes: 4 additions & 4 deletions arch/x86/kvm/mtrr.c
Expand Up @@ -672,16 +672,16 @@ u8 kvm_mtrr_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn)
if (iter.mtrr_disabled)
return mtrr_disabled_type();

/* not contained in any MTRRs. */
if (type == -1)
return mtrr_default_type(mtrr_state);

/*
* We just check one page, partially covered by MTRRs is
* impossible.
*/
WARN_ON(iter.partial_map);

/* not contained in any MTRRs. */
if (type == -1)
return mtrr_default_type(mtrr_state);

return type;
}
EXPORT_SYMBOL_GPL(kvm_mtrr_get_guest_memory_type);
Expand Down

0 comments on commit 4469942

Please sign in to comment.