Re: SMP guest boots

Avi Kivity
2007-06-13T16:25:35Z

Li, Xin B wrote:
> I've just got x86_64 Linux 2.6.20.3 SMP guest boots on KVM with 2 vCPUs
> (I'm using a x86_64 RHEL5 image but the RHEL5 kernel can't boot.),
>

I found that an issue with x86-64 is that the mmu picks up an nx shadow
page for a non-nx guest pte. This is unrelated to smp, but only shows
up there. It is easily fixed but meanwhile a workaround is to disable
nx in cpuid.

I have a patch for userspace which does the following:

- set up a kvm main loop outside vl.c and cpu-exec.c.
- disable signals on ap threads, so that timer and network signals are
only handled on vcpu 0
- set up locking so that qemu code is never executed on more than one thread
- hack qemu's apic so it can sipi and ipi other vcpus

--
error compiling committee.c: too many arguments to function