Received: from eggs.gnu.org ([2001:4830:134:3::10]:48450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddZpV-00054b-Aq for qemu-devel@nongnu.org; Fri, 04 Aug 2017 06:27:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddZpS-0002J5-79 for qemu-devel@nongnu.org; Fri, 04 Aug 2017 06:27:41 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:53652 helo=mx01.kamp.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddZpR-0002HS-TF for qemu-devel@nongnu.org; Fri, 04 Aug 2017 06:27:38 -0400 References: <526F8457.5040907@kamp.de> <526F8701.2030906@redhat.com> <1aefefcb-5ea7-e91f-bf11-4cde9ccd0f92@kamp.de> <3709ecdf-bcee-15e4-036a-9be9446db9bc@redhat.com> From: Peter Lieven Message-ID: <33560059-ae3d-9ee9-dab7-9f992f8d913c@kamp.de> Date: Fri, 4 Aug 2017 12:27:34 +0200 MIME-Version: 1.0 In-Reply-To: <3709ecdf-bcee-15e4-036a-9be9446db9bc@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] Prohibit Windows from running in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "qemu-devel@nongnu.org" Am 04.08.2017 um 12:23 schrieb Paolo Bonzini: > On 04/08/2017 11:58, Peter Lieven wrote: >> Am 29.10.2013 um 10:59 schrieb Paolo Bonzini: >>> Il 29/10/2013 10:48, Peter Lieven ha scritto: >>>> Hi all, >>>> >>>> this question might seem a bit weird, but does anyone see a good way to >>>> avoid >>>> that Windows is able to boot inside qemu? >>>> >>>> We have defined several profiles for different operation systems and I want >>>> to avoid that someone chooses Linux and then installs Windows within >>>> a VM. Reason is licensing. >>> Patch QEMU to crash when Hyper-V extensions are enabled... >> Hi all, >> >> this is an old topic that has become important for me again recently. >> Now all Linux versions should be able to detect KVM even if Hyper-V is enabled. >> >> But how do I detect from Qemu userspace that Hyper-V is enabled? > Maybe a better one: make KVM crash the guest if CR8 is nonzero on a > vmexit. Linux doesn't use it, Windows should not survive long. You mean the kvm kernel module? Or can I access this register also from Qemu on any call that is handled in userspace? It would be easier to have a cmdline option to Qemu than an option to a kernel module. > Warning, I don't know if UEFI firmware uses CR8. UEFI firmware is not important in this case. Do you know if FreeBSD, OpenBSD or NetBSD use it? Thank for your ideas, Peter