From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: SMP guest boots Date: Wed, 13 Jun 2007 19:25:35 +0300 Message-ID: <46701A7F.1090800@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Li, Xin B" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/