* [Qemu-devel] [PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector
@ 2010-01-28 8:30 Jan Kiszka
2010-01-28 19:58 ` [Qemu-devel] " Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2010-01-28 8:30 UTC (permalink / raw)
To: Marcelo Tosatti, Avi Kivity; +Cc: Gleb Natapov, qemu-devel, kvm
The final version of VCPU events in 2.6.33 will allow to skip
nmi_pending and sipi_vector on KVM_SET_VCPU_EVENTS. For now let's write
them unconditionally, which is unproblematic for upstream due to missing
SMP support. Future version which enable SMP will write them only on
reset.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
The same patch can be used by qemu-kvm as it will only trigger on
init/reset unlike upstream.
target-i386/kvm.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 5b093ce..b457b96 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -794,6 +794,9 @@ static int kvm_put_vcpu_events(CPUState *env)
events.sipi_vector = env->sipi_vector;
+ events.flags =
+ KVM_VCPUEVENT_VALID_NMI_PENDING | KVM_VCPUEVENT_VALID_SIPI_VECTOR;
+
return kvm_vcpu_ioctl(env, KVM_SET_VCPU_EVENTS, &events);
#else
return 0;
--
1.6.0.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector
2010-01-28 8:30 [Qemu-devel] [PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector Jan Kiszka
@ 2010-01-28 19:58 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2010-01-28 19:58 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Gleb Natapov, Avi Kivity, kvm, qemu-devel
On Thu, Jan 28, 2010 at 09:30:51AM +0100, Jan Kiszka wrote:
> The final version of VCPU events in 2.6.33 will allow to skip
> nmi_pending and sipi_vector on KVM_SET_VCPU_EVENTS. For now let's write
> them unconditionally, which is unproblematic for upstream due to missing
> SMP support. Future version which enable SMP will write them only on
> reset.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-28 21:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 8:30 [Qemu-devel] [PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector Jan Kiszka
2010-01-28 19:58 ` [Qemu-devel] " Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).