Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932275AbbFIDme (ORCPT ); Mon, 8 Jun 2015 23:42:34 -0400 Received: from mga02.intel.com ([134.134.136.20]:41867 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932167AbbFIDmV (ORCPT ); Mon, 8 Jun 2015 23:42:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,577,1427785200"; d="scan'208";a="739846029" Message-ID: <55765FA8.3070609@linux.intel.com> Date: Tue, 09 Jun 2015 11:38:16 +0800 From: Xiao Guangrong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org CC: rkrcmar@redhat.com, bdas@redhat.com Subject: Re: [PATCH v2 10/13] KVM: x86: use vcpu-specific functions to read/write/translate GFNs References: <1432746314-50196-1-git-send-email-pbonzini@redhat.com> <1432746314-50196-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1432746314-50196-11-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 687 Lines: 16 On 05/28/2015 01:05 AM, Paolo Bonzini wrote: > We need to hide SMRAM from guests not running in SMM. Therefore, > all uses of kvm_read_guest* and kvm_write_guest* must be changed to > check whether the VCPU is in system management mode and use a > different set of memslots. Switch from kvm_* to the newly-introduced > kvm_vcpu_*, which call into kvm_arch_vcpu_memslots_id. > Reviewed-by: Xiao Guangrong -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/