From patchwork Mon Aug 3 16:23:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 38923 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 n73GMWpn020703 for ; Mon, 3 Aug 2009 16:22:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755389AbZHCQW3 (ORCPT ); Mon, 3 Aug 2009 12:22:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755387AbZHCQW3 (ORCPT ); Mon, 3 Aug 2009 12:22:29 -0400 Received: from mga14.intel.com ([143.182.124.37]:32814 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755384AbZHCQW2 (ORCPT ); Mon, 3 Aug 2009 12:22:28 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 03 Aug 2009 09:22:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.43,315,1246863600"; d="scan'208";a="171762020" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.29]) by azsmga001.ch.intel.com with ESMTP; 03 Aug 2009 09:22:28 -0700 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1MY0Jf-0005B5-38; Tue, 04 Aug 2009 00:23:15 +0800 From: Sheng Yang To: Avi Kivity Cc: Marcelo Tosatti , Jan Kiszka , kvm@vger.kernel.org, Sheng Yang Subject: [PATCH] kvm: fix set_ept_identity_addr() in pae Date: Tue, 4 Aug 2009 00:23:15 +0800 Message-Id: <1249316595-19882-2-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1249316595-19882-1-git-send-email-sheng@linux.intel.com> References: <1249316595-19882-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org The argument to kernel space should be u64 rather than unsigned long. Signed-off-by: Sheng Yang --- qemu-kvm-x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 492dbc5..5fa89e8 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -73,7 +73,7 @@ static int kvm_init_tss(kvm_context_t kvm) return 0; } -static int kvm_set_identity_map_addr(kvm_context_t kvm, unsigned long addr) +static int kvm_set_identity_map_addr(kvm_context_t kvm, uint64_t addr) { #ifdef KVM_CAP_SET_IDENTITY_MAP_ADDR int r;