From patchwork Thu Sep 17 20:13:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John R. Lange" X-Patchwork-Id: 33923 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E9F59B7B72 for ; Sat, 19 Sep 2009 16:12:32 +1000 (EST) Received: from localhost ([127.0.0.1]:46970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MotBM-0002MW-5Y for incoming@patchwork.ozlabs.org; Sat, 19 Sep 2009 02:12:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoNMO-0005oP-FM for qemu-devel@nongnu.org; Thu, 17 Sep 2009 16:13:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoNML-0005oA-1o for qemu-devel@nongnu.org; Thu, 17 Sep 2009 16:13:44 -0400 Received: from [199.232.76.173] (port=59923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoNMK-0005o7-RM for qemu-devel@nongnu.org; Thu, 17 Sep 2009 16:13:40 -0400 Received: from zappa.cs.northwestern.edu ([165.124.180.8]:50552) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MoNMK-000132-IW for qemu-devel@nongnu.org; Thu, 17 Sep 2009 16:13:40 -0400 Received: (qmail 27594 invoked by uid 1738); 17 Sep 2009 20:13:41 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Sep 2009 20:13:41 -0000 Date: Thu, 17 Sep 2009 15:13:41 -0500 (CDT) From: "John R. Lange" To: qemu-devel@nongnu.org Message-ID: MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sat, 19 Sep 2009 02:10:31 -0400 Subject: [Qemu-devel] [PATCH] fixed bug in SVM_EXIT_MSR handlers MSR bitmap lookup for low order MSRs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It looks like there was a minor calculation error in the SVM_EXIT_MSR bitmap lookup. --- target-i386/op_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index c3f5af6..dcee7a3 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -5209,7 +5209,7 @@ void helper_svm_check_intercept_param(uint32_t type, uint64_t param) switch((uint32_t)ECX) { case 0 ... 0x1fff: t0 = (ECX * 2) % 8; - t1 = ECX / 8; + t1 = (ECX * 2) / 8; break; case 0xc0000000 ... 0xc0001fff: t0 = (8192 + ECX - 0xc0000000) * 2;