On Sun, 2007-07-08 at 20:58 +0800, Avi Kivity wrote:
The only fly in the ointment is that it crashes quite soon. Haven'tAttached patch seems help in my test. prepare_task_switch is called with
figured
out why yet, but comments on the general direction would be welcome.
irq disabled.
-static void vmx_vcpu_load(struct kvm_vcpu *vcpu)This and below change will break preempt disabled case. better remove
+static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
{
u64 phys_addr = __pa(vcpu->vmcs);
- int cpu;
u64 tsc_this, delta;
- cpu = get_cpu();
-
+ WARN_ON(!preempt_count());
them.