From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU Date: Wed, 29 Oct 2008 09:23:53 -0500 Message-ID: <490871F9.3010801@codemonkey.ws> References: <1225224814-9875-1-git-send-email-aliguori@us.ibm.com> <1225224814-9875-2-git-send-email-aliguori@us.ibm.com> <1225224814-9875-3-git-send-email-aliguori@us.ibm.com> <49078707.5000109@redhat.com> <49078955.2090109@codemonkey.ws> <5d6222a80810281604g39708040kf710725dce6413dd@mail.gmail.com> <4907A1FA.2060106@codemonkey.ws> <49086E96.80809@redhat.com> <49087029.9020100@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Glauber Costa , hollis@alumni.cmu.edu, Gerd Hoffmann , kvm-devel To: qemu-devel@nongnu.org Return-path: Received: from mail-gx0-f31.google.com ([209.85.217.31]:49595 "EHLO mail-gx0-f31.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753128AbYJ2OYA (ORCPT ); Wed, 29 Oct 2008 10:24:00 -0400 Received: by gxk12 with SMTP id 12so137631gxk.13 for ; Wed, 29 Oct 2008 07:23:58 -0700 (PDT) In-Reply-To: <49087029.9020100@bellard.org> Sender: kvm-owner@vger.kernel.org List-ID: Fabrice Bellard wrote: > Avi Kivity wrote: > >> Hollis Blanchard wrote: >> >>> >>> Out of curiosity, where are those places? >>> >>> >> local apic -- needs to access interrupt disable flag >> acpi sleep -- halts the current processor, so tied to cpustate >> vmport -- bad ABI requires access to registers >> > > These accesses are the exception and should be done with specific CPU > methods. IMHO, direct access to the CPU state should otherwise never be > done from devices. > Yes, this is what I'm working on now. There are also non-devices that access CPUState but they are also special cases (gdbstub, monitor, save/restore). Regards, Anthony Liguori > Regards, > > Fabrice. > > > >