From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: Re: [PATCH 4/4] dont trim the guest's hypervisor CPUID bit in KVM if the guest requests it Date: Wed, 24 Jun 2009 15:28:42 +0200 Message-ID: <4A422A0A.5090207@amd.com> References: <1245840276-12702-1-git-send-email-andre.przywara@amd.com> <1245840276-12702-2-git-send-email-andre.przywara@amd.com> <1245840276-12702-3-git-send-email-andre.przywara@amd.com> <1245840276-12702-4-git-send-email-andre.przywara@amd.com> <4A420DD4.4020905@redhat.com> <4A421C05.3020203@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from outbound-sin.frontbridge.com ([207.46.51.80]:27001 "EHLO SG2EHSOBE006.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319AbZFXN0A (ORCPT ); Wed, 24 Jun 2009 09:26:00 -0400 In-Reply-To: <4A421C05.3020203@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: Andre Przywara wrote: > Avi Kivity wrote: >>> --- a/arch/x86/kvm/x86.c >>> +++ b/arch/x86/kvm/x86.c >>> @@ -1415,7 +1415,7 @@ static void do_cpuid_ent(struct >>> - 0 /* Reserved, XSAVE, OSXSAVE */; >>> + 0 /* Reserved, XSAVE, OSXSAVE */ | F(HYPERVISOR); >> >> I think this should be handled in qemu, since it isn't really a cpu bit. > > But this would require to make an exception for turning this bit on > again after it has been trimmed. > I just made (QEMU) patches for make this trimming really work (and > removing all the hacked bits), so I would like to not spoil this again > by introducing another exception. I kind of tricked myself here. Since the hypervisor bit is (well, mostly) not set in the host, it will always be removed from the guest. So we need an exception for this anyway. So please drop this patch, I will come up with some QEMU solution for this. Regards, Andre. > After all this is more a list of what > KVM does _not_ support (should we make this a negative one? gets ugly > with the reserved bits), so I would like to leave it here. > I will send out the patches to qemu-devel when I found the last bug. > -- Andre Przywara AMD-OSRC (Dresden) Tel: x29712