From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 4/4] x86: properly handle kvm emulation of hyperv Date: Tue, 23 Jul 2013 07:48:29 -0700 Message-ID: <51EE97BD.4050402@zytor.com> References: <1374572465-15278-1-git-send-email-jasowang@redhat.com> <1374572465-15278-4-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jason Wang , "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "gleb@redhat.com" , "pbonzini@redhat.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" To: KY Srinivasan Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/23/2013 06:55 AM, KY Srinivasan wrote: > > This strategy of hypervisor detection based on some detection order IMHO is not > a robust detection strategy. The current scheme works since the only hypervisor emulated > (by other hypervisors happens to be Hyper-V). What if this were to change. > One strategy would be to pick the *last* one in the CPUID list, since the ones before it are logically the one(s) being emulated... -hpa