From patchwork Mon Jun 15 13:21:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 30314 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 n5FDLrAx028123 for ; Mon, 15 Jun 2009 13:21:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759954AbZFONV0 (ORCPT ); Mon, 15 Jun 2009 09:21:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760151AbZFONV0 (ORCPT ); Mon, 15 Jun 2009 09:21:26 -0400 Received: from cantor.suse.de ([195.135.220.2]:36507 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759661AbZFONVX (ORCPT ); Mon, 15 Jun 2009 09:21:23 -0400 Received: from relay1.suse.de (mail2.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 97F3B90847 for ; Mon, 15 Jun 2009 15:21:25 +0200 (CEST) From: Alexander Graf To: kvm@vger.kernel.org Subject: [PATCH 2/4] Implement Hyper-V MSRs Date: Mon, 15 Jun 2009 15:21:23 +0200 Message-Id: <1245072085-8504-3-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1245072085-8504-2-git-send-email-agraf@suse.de> References: <1245072085-8504-1-git-send-email-agraf@suse.de> <1245072085-8504-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); }