Received: from eggs.gnu.org ([2001:4830:134:3::10]:42583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNL24-0000Q5-NZ for qemu-devel@nongnu.org; Wed, 13 Jul 2016 10:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNL20-0000bv-EE for qemu-devel@nongnu.org; Wed, 13 Jul 2016 10:21:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNL20-0000br-8K for qemu-devel@nongnu.org; Wed, 13 Jul 2016 10:20:56 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CE1ADC04B30D for ; Wed, 13 Jul 2016 14:20:55 +0000 (UTC) Date: Wed, 13 Jul 2016 11:20:53 -0300 From: Eduardo Habkost Message-ID: <20160713142053.GI3727@thinpad.lan.raisama.net> References: <1468265326-3717-1-git-send-email-dgilbert@redhat.com> <1468265326-3717-2-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1468265326-3717-2-git-send-email-dgilbert@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5] x86: Set physical address bits based on host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, marcel@redhat.com, mst@redhat.com, kraxel@redhat.com On Mon, Jul 11, 2016 at 08:28:46PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Add the host-phys-bits boolean property, if true, take phys-bits > from the hosts physical bits value, overriding either the default > or the user specified value. > > We can also use the value we read from the host to check the users > explicitly set value and warn them if it doesn't match. > > Note: > a) We only read the hosts value in KVM mode (because on non-x86 > we get an abort if we try) > b) We don't warn about trying to use host-phys-bits in TCG mode, > we just fall back to the TCG default. This allows the machine > type to set the host-phys-bits flag if it wants and then to > work in both TCG and KVM. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Eduardo Habkost Applied to x86-next. Thanks! -- Eduardo