From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb9zY-000263-Cw for qemu-devel@nongnu.org; Tue, 29 Oct 2013 10:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb9zS-0002hK-EZ for qemu-devel@nongnu.org; Tue, 29 Oct 2013 10:09:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb9zS-0002gh-6M for qemu-devel@nongnu.org; Tue, 29 Oct 2013 10:09:50 -0400 Message-ID: <526FC24A.1010106@redhat.com> Date: Tue, 29 Oct 2013 15:12:26 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <526F8457.5040907@kamp.de> <526F8701.2030906@redhat.com> <526F89B4.5080504@kamp.de> <526F8BCA.7090503@redhat.com> <526F909A.8000004@kamp.de> <526F927D.1050901@redhat.com> <526F92F4.8080406@kamp.de> In-Reply-To: <526F92F4.8080406@kamp.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Prohibit Windows from running in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: Paolo Bonzini , "qemu-devel@nongnu.org" On 10/29/13 11:50, Peter Lieven wrote: > On 29.10.2013 11:48, Paolo Bonzini wrote: >> Il 29/10/2013 11:40, Peter Lieven ha scritto: >>>> The KVM signature should be at CPUID leaf 0x40000100. >>> If I enable hyperv for all vServers the signature is at >>> KVM_CPUID_SIGNATURE_NEXT (0x40000100) otherwise >>> at KVM_CPUID_SIGNATURE (0x0). >> KVM_CPU_ID_SIGNATURE is 0x40000000. >> >>> Does this matter to Linux? >> For recent versions it doesn't. Older versions will not be able to use >> kvmclock (and other PV enhancements for KVM such as steal time or PV >> EOI). > Ok, so this is not an option today - maybe later... > > Any other idea to detect Windows is running or trying to start? I don't know what I'm talking about. But: - Maybe tracing MSR accesses could give you a "profile". - Windows' ACPI parser is super cranky. You could pass in a custom (but standardized) ACPI table on the command line (-acpitable) that only triggers some warnings in Linux's port of ACPICA, but crashes Windows (BSOD). Like, write & compile a simple table to AML, then mess it up (eg. Package encoding or some such) with a hex editor. This would take some experimentation as well, but searching existing bug reports could help. Laszlo