Received: from eggs.gnu.org ([2001:4830:134:3::10]:34266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcu2u-0005b0-PW for qemu-devel@nongnu.org; Thu, 25 Aug 2016 08:46:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcu2p-00019d-Tf for qemu-devel@nongnu.org; Thu, 25 Aug 2016 08:46:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcu2p-00019X-Nw for qemu-devel@nongnu.org; Thu, 25 Aug 2016 08:46:07 -0400 Date: Thu, 25 Aug 2016 08:46:05 -0400 From: Eduardo Habkost Message-ID: <20160825124605.GE3622@thinpad.lan.raisama.net> References: <57BE99A7.2060005@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57BE99A7.2060005@huawei.com> Subject: Re: [Qemu-devel] Why Qemu doesn't present L3 cache info for guest? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shannon Zhao Cc: qemu-devel , Paolo Bonzini , longpeng , "Huangpeng (Peter)" , "Gonglei (Arei)" On Thu, Aug 25, 2016 at 03:09:27PM +0800, Shannon Zhao wrote: > Hi guys, > > Looking at the codes, for pc-2.4 machine it enables host-cache-info for > guest so guest can get the L3 cache info of host. But since QEMU has its > own rule to generate ACPI ID, guest will not use the L3 cache correctly. > > I also notice that QEMU present L1 and L2 cache for guest via its own > rule, why it not present L3 cache info which is consistent with the ACPI > ID? Are there any downsides? host-cache-info is there only for compatibility with old behavior of "-cpu host", but I wouldn't advise anyone to use it. We would need a proper way to configure cache information exposed to the guest (including both CPUID and anything that would be exposed through ACPI), but we don't have one yet. -- Eduardo