From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKInd-0002dy-2S for qemu-devel@nongnu.org; Mon, 14 Dec 2009 16:49:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKInY-0002d8-Jp for qemu-devel@nongnu.org; Mon, 14 Dec 2009 16:49:48 -0500 Received: from [199.232.76.173] (port=54225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKInY-0002d5-BV for qemu-devel@nongnu.org; Mon, 14 Dec 2009 16:49:44 -0500 Received: from mail-yw0-f171.google.com ([209.85.211.171]:56635) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKInY-0008I1-3v for qemu-devel@nongnu.org; Mon, 14 Dec 2009 16:49:44 -0500 Received: by ywh1 with SMTP id 1so3243468ywh.18 for ; Mon, 14 Dec 2009 13:49:43 -0800 (PST) Message-ID: <4B26B2F3.9080102@codemonkey.ws> Date: Mon, 14 Dec 2009 15:49:39 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] cpuid problem in upstream qemu with kvm References: <20091214193541.GA6150@redhat.com> <4B269596.1050103@codemonkey.ws> <20091214194432.GC6150@redhat.com> <4B2698A9.9090107@codemonkey.ws> <20091214200002.GA27769@redhat.com> <4B2699BB.1090302@codemonkey.ws> <20091214201049.GD6150@redhat.com> <4B269D99.8080404@codemonkey.ws> <20091214203125.GH6150@redhat.com> <4B26A619.7070503@codemonkey.ws> <20091214211024.GD6100@redhat.com> In-Reply-To: <20091214211024.GD6100@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, Gleb Natapov , avi@redhat.com Michael S. Tsirkin wrote: > On Mon, Dec 14, 2009 at 02:54:49PM -0600, Anthony Liguori wrote: > >> Michael S. Tsirkin wrote: >> >>> On Mon, Dec 14, 2009 at 02:18:33PM -0600, Anthony Liguori wrote: >>> >>> >>>> Michael S. Tsirkin wrote: >>>> >>>> >>>>> This might help 32 bit guests, but not guests with 64 bit >>>>> kernel and 32 bit userspace (my case) because all 64 bit >>>>> CPUs advertise syscall bit in cpuid. Thus 64 bit guests >>>>> do not seem to even bother checking this bit: >>>>> AMD + 64 bit -> syscall. >>>>> >>>>> >>>> Okay, I don't see a great option other than migrating the vendor_id string. >>>> >>>> >>> This won't help with kernels <2.6.32 though. I guess we can switch >>> default vendor to Intel, this likely has some other side effects. >>> >>> >> That's a kernel bug. If we think it effects a lot of users, we should >> introduce a CAP such that we can detect this in userspace and fail >> gracefully. >> > > Not emulating feature host CPU does not have is a kernel bug? > Okay ... > Yes, almost no one runs 2.6.32 yet. > The kernel has the ability to filter feature bits from cpuid. We assume it's going to filter out things it doesn't support. Regards, Anthony Liguori