From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] mask out clflush Date: Thu, 10 Jul 2008 10:37:09 -0500 Message-ID: <48762CA5.50809@codemonkey.ws> References: <1215541784-26539-1-git-send-email-gcosta@redhat.com> <200807101843.57902.sheng.yang@intel.com> <48760EE6.1070303@codemonkey.ws> <48760FDA.80401@qumranet.com> <487610A5.9030903@codemonkey.ws> <4876185B.9030609@qumranet.com> <48761A97.7010500@codemonkey.ws> <5d6222a80807100745t6795084dsd78695ea69413a24@mail.gmail.com> <4876211A.5030307@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Glauber Costa , "Yang, Sheng" , kvm@vger.kernel.org, Glauber Costa To: Avi Kivity Return-path: Received: from py-out-1112.google.com ([64.233.166.176]:60394 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbYGJPhm (ORCPT ); Thu, 10 Jul 2008 11:37:42 -0400 Received: by py-out-1112.google.com with SMTP id p76so1867449pyb.10 for ; Thu, 10 Jul 2008 08:37:41 -0700 (PDT) In-Reply-To: <4876211A.5030307@qumranet.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Glauber Costa wrote: >> On Thu, Jul 10, 2008 at 11:20 AM, Anthony Liguori >> wrote: >> >>> Avi Kivity wrote: >>> >>>> Anthony Liguori wrote: >>>> >>>>> It's equivalent to a read from a VT perspective so if the read would >>>>> trap, the clflush instruction will trap. >>>>> >>>>> >>>> Reads don't normally go through the emulator. Is the guest >>>> clflush()ing >>>> mmio addresses? Strange as these are not normally cached. >>>> >>> It seems so, Glauber mentioned that the address was an MMIO address. >>> >> >> yes. It is address 0xc8821000, apparently part of a pci controller >> initialization. >> > > qemu pci starts at 0xe0000000 IIRC. So maybe the guest is flushing > random addresses just to be annoying. That's a virtual address, not a physical address IIUC. Regards, Anthony Liguori