diff options
author | Gleb Natapov <gleb@redhat.com> | 2013-10-17 10:04:47 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-10-17 10:41:49 -0400 |
commit | 13acfd5715144518232d8e29acf7c76ef1b089d8 (patch) | |
tree | 093c4311a737210bbdd3d1919f8193cb5f017241 /virt/kvm | |
parent | d570142674890fe10b3d7d86aa105e3dfce1ddfa (diff) | |
parent | 34ec4de42be5006abdd8d0c08b306ffaa64d0d5d (diff) |
Powerpc KVM work is based on a commit after rc4.
Merging master into next to satisfy the dependencies.
Conflicts:
arch/arm/kvm/reset.c
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d469114aff09..0d20c320a33d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1065,10 +1065,12 @@ EXPORT_SYMBOL_GPL(gfn_to_hva); | |||
1065 | unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable) | 1065 | unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable) |
1066 | { | 1066 | { |
1067 | struct kvm_memory_slot *slot = gfn_to_memslot(kvm, gfn); | 1067 | struct kvm_memory_slot *slot = gfn_to_memslot(kvm, gfn); |
1068 | if (writable) | 1068 | unsigned long hva = __gfn_to_hva_many(slot, gfn, NULL, false); |
1069 | |||
1070 | if (!kvm_is_error_hva(hva) && writable) | ||
1069 | *writable = !memslot_is_readonly(slot); | 1071 | *writable = !memslot_is_readonly(slot); |
1070 | 1072 | ||
1071 | return __gfn_to_hva_many(gfn_to_memslot(kvm, gfn), gfn, NULL, false); | 1073 | return hva; |
1072 | } | 1074 | } |
1073 | 1075 | ||
1074 | static int kvm_read_hva(void *data, void __user *hva, int len) | 1076 | static int kvm_read_hva(void *data, void __user *hva, int len) |