Skip to contentSkip to conversation

is vmx_vcpu_run deprecated in kvm-77?

DISCUSSION Steven Stovall 1 participant 1 message Jan 15, 2009 1 message not in the archive KVM

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I don't mean to be obtuse, but are you saying kvm_main_loop_wait() *should* dequeue the pending signal or *does* dequeue the pending signal, just not for "host userspace"?

Steven

----- Original Message -----
From: "Avi Kivity" <[email protected]>
To: "Steven Stovall" <[email protected]>
Sent: Thursday, January 15, 2009 1:46:30 PM GMT -08:00 US/Canada Pacific
Subject: Re: is vmx_vcpu_run deprecated in kvm-77?

Please keep the conversation on the kvm list.

Quoted 3 lines · Steven Stovall

Avi,

Not sure what you mean by "kvm-userspace",

The code in kvm-userspace.git, namely libkvm and qemu.

Quoted 1 line

but the app uses qemu and libkvm ioctls to interface with kvm.

So this is a host-side app, right, not running in the guest? Please describe it.

Quoted 2 lines

The problem seems to be that for some reason the call to signal_pending() from __vcpu_run is always true and never lets vmx_vcpu_run() be called (i never see the msrs set either). The only exit_reasons seen are KVM_EXIT_INTR. I've been looking at this hard for 2 weeks now, and its driving me crazy. Not to mention my boss.

I don't care much about your boss, but you should have posted earlier. What happens is that a signal is pending, and host userspace doesn't dequeue it, so it remains pending. This is handled by kvm_main_loop_wait().

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.