Thread (4 messages) 4 messages, 3 authors, 2016-09-23
STALE3569d

[PATCH v6] KVM: arm/arm64: Route vtimer events to user space

From: pbonzini@redhat.com (Paolo Bonzini)
Date: 2016-09-23 12:11:41
Also in: kvm, kvmarm


On 23/09/2016 13:07, Alexander Graf wrote:
+		timer_ret = kvm_timer_sync_hwstate(vcpu);
 
 		kvm_vgic_sync_hwstate(vcpu);
 
 		preempt_enable();
 
 		ret = handle_exit(vcpu, run, ret);
+
+		if ((ret == 1) && timer_ret) {
+			/*
+			 * We have to exit straight away to ensure that we only
+			 * ever notify user space once about a level change
+			 */
Is this really a requirement?  It complicates the logic noticeably.

Paolo
+			ret = -EINTR;
+			run->exit_reason = KVM_EXIT_INTR;
+		}
 	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help