Thread (28 messages) 28 messages, 4 authors, 2020-02-21

Re: [PATCH v6 17/22] KVM: Terminate memslot walks via used_slots

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2020-02-21 17:48:05
Also in: kvm, kvmarm, linux-mips, lkml

On 18/02/20 22:07, Sean Christopherson wrote:
 	tmp = id_to_memslot(__kvm_memslots(kvm, as_id), id);
-	old = *tmp;
-	tmp = NULL;
+	if (tmp) {
+		old = *tmp;
+		tmp = NULL;
+	} else {
+		memset(&old, 0, sizeof(old));
+		old.id = id;
+	}
 
So much for my previous brilliant suggestion. :)

Paolo


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help