[lkml]   [2017]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 3.18 070/145] KVM: s390: Disable dirty log retrieval for UCONTROL guests
3.18-stable review patch.  If anyone has any objections, please let me know.


From: Janosch Frank <>

commit e1e8a9624f7ba8ead4f056ff558ed070e86fa747 upstream.

User controlled KVM guests do not support the dirty log, as they have
no single gmap that we can check for changes.

As they have no single gmap, kvm->arch.gmap is NULL and all further
referencing to it for dirty checking will result in a NULL

Let's return -EINVAL if a caller tries to sync dirty logs for a

Fixes: 15f36eb ("KVM: s390: Add proper dirty bitmap support to S390 kvm.")
Signed-off-by: Janosch Frank <>
Reported-by: Martin Schwidefsky <>
Reviewed-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>
Signed-off-by: Greg Kroah-Hartman <>

arch/s390/kvm/kvm-s390.c | 3 +++
1 file changed, 3 insertions(+)

--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -207,6 +207,9 @@ int kvm_vm_ioctl_get_dirty_log(struct kv
struct kvm_memory_slot *memslot;
int is_dirty = 0;

+ if (kvm_is_ucontrol(kvm))
+ return -EINVAL;

r = -EINVAL;

 \ /
  Last update: 2017-04-16 13:13    [W:0.341 / U:9.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site