From patchwork Tue May 19 10:54:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 24697 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4JAsJd5015723 for ; Tue, 19 May 2009 10:54:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbZESKyM (ORCPT ); Tue, 19 May 2009 06:54:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751850AbZESKyM (ORCPT ); Tue, 19 May 2009 06:54:12 -0400 Received: from cantor.suse.de ([195.135.220.2]:40232 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbZESKyJ (ORCPT ); Tue, 19 May 2009 06:54:09 -0400 Received: from relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 5510F9295B; Tue, 19 May 2009 12:54:10 +0200 (CEST) From: Alexander Graf To: kvm@vger.kernel.org Cc: joerg.roedel@amd.com Subject: [PATCH 2/4] Implement Hyper-V MSRs v2 Date: Tue, 19 May 2009 12:54:01 +0200 Message-Id: <1242730443-15656-3-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1242730443-15656-2-git-send-email-agraf@suse.de> References: <1242730443-15656-1-git-send-email-agraf@suse.de> <1242730443-15656-2-git-send-email-agraf@suse.de> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hyper-V uses some MSRs, some of which are actually reserved for BIOS usage. But let's be nice today and have it its way, because otherwise it fails terribly. v2 changes: - remove the 0x40000081 MSR definition - add pr_unimpl() on unimplemented writes Signed-off-by: Alexander Graf --- arch/x86/kvm/svm.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index ef43a18..4b4eadd 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -2034,6 +2034,11 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data) case MSR_VM_HSAVE_PA: svm->hsave_msr = data; break; + case MSR_VM_CR: + case MSR_VM_IGNNE: + case MSR_K8_HWCR: + pr_unimpl(vcpu, "unimplemented wrmsr: 0x%x data 0x%llx\n", ecx, data); + break; default: return kvm_set_msr_common(vcpu, ecx, data); }