Message ID | 20170620091526.4287-8-xiaoguangrong@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 449E6600C5 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 20 Jun 2017 09:21:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B93626CFC for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 20 Jun 2017 09:21:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3045528456; Tue, 20 Jun 2017 09:21:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ECFA426CFC for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 20 Jun 2017 09:21:38 +0000 (UTC) Received: from localhost ([::1]:47469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1dNFLu-0003R5-3K for patchwork-qemu-devel@patchwork.kernel.org; Tue, 20 Jun 2017 05:21:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guangrong.xiao@gmail.com>) id 1dNFGV-0000Ff-Ph for qemu-devel@nongnu.org; Tue, 20 Jun 2017 05:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <guangrong.xiao@gmail.com>) id 1dNFGU-0007u9-RH for qemu-devel@nongnu.org; Tue, 20 Jun 2017 05:16:03 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:33226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <guangrong.xiao@gmail.com>) id 1dNFGU-0007tk-Ld for qemu-devel@nongnu.org; Tue, 20 Jun 2017 05:16:02 -0400 Received: by mail-pg0-x241.google.com with SMTP id u62so14466743pgb.0 for <qemu-devel@nongnu.org>; Tue, 20 Jun 2017 02:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R8FZpu7zOv7rdtW+NtJ9S/Q8p4eKfZ0wR1eID0LUwI8=; b=RVA1io95E9yt1E0C83s5dGlrS/ZHvjBnnxxt+juXiey69G6bjCvaVWnPTRA9QsgORV Xoq63Wx0tZPXcjVwrHJyshHWK3bM4Wrvm4GlCg3G9TlUKIhMRAVHvr30ZpOh/uVNJX18 5Y0oNvLnW4eWQ48VfxzBZEi1s2LPfOWV/KAnGqfKREQOkM/VPSuNqVEfqZnezIAIOukN Xe9oZDRzqaU55P6LgsRFBWtSCDAas35GvjuwTrofsXrapCOfnkcDk1zcPagI93GJ2kfS QIR1mqyldMtsQlhtAeE03q+AWrKeqhxnaN5u5W9Ex0cwOzELXXs9iQPkXHe3D9d4oY3g /Tdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=R8FZpu7zOv7rdtW+NtJ9S/Q8p4eKfZ0wR1eID0LUwI8=; b=DyJEUkRvFKcZhaRyRDo47RYCP1Wus5WWRmVnTIfxmyAngRo21WG43Qw9cnJG5ilQq+ JeH13aC4q8wtm6Pf4j0oWrYD35BhMN1A+ksj9GEO9C8YutvSi4G+TThZdDTNhnaEVLtG /YSnhgEJhXbFvMXubajThgspNCyoqz6pOmzJMEK+cMCRyCqBz1AWvAAiU1LTdHXRBaXG W7FpI2PC+pnARRmHraOu94iDprcbAhjErA3CcWmk3700hG5Jhz3xtAZ5r/ryCWbchqrS WJYZWjqbUA2MNx4aeKEwv/x4jTErVilTnBb73EseCSiEfMAg2uHZUjMVmGMdQr0fg7YN 2elw== X-Gm-Message-State: AKS2vOxMPF9X2M5D8r4rFj9LyLE7RVRpP+PKZcRNcTdQP+46vgTBSnZc VMRQiaT0OZ2RNw== X-Received: by 10.101.91.7 with SMTP id y7mr30398646pgq.226.1497950161891; Tue, 20 Jun 2017 02:16:01 -0700 (PDT) Received: from eric.tencent.com ([203.205.141.35]) by smtp.gmail.com with ESMTPSA id o12sm26343810pfi.9.2017.06.20.02.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 02:16:01 -0700 (PDT) From: guangrong.xiao@gmail.com X-Google-Original-From: xiaoguangrong@tencent.com To: pbonzini@redhat.com, mtosatti@redhat.com, avi.kivity@gmail.com, rkrcmar@redhat.com Date: Tue, 20 Jun 2017 17:15:26 +0800 Message-Id: <20170620091526.4287-8-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170620091526.4287-1-xiaoguangrong@tencent.com> References: <20170620091526.4287-1-xiaoguangrong@tencent.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH v2 7/7] KVM: MMU: stop using mmu_spte_get_lockless under mmu-lock X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Xiao Guangrong <xiaoguangrong@tencent.com>, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 7711953..dc00c32 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -852,7 +852,7 @@ static u64 restore_acc_track_spte(u64 spte) /* Returns the Accessed status of the PTE and resets it at the same time. */ static bool mmu_spte_age(u64 *sptep) { - u64 spte = mmu_spte_get_lockless(sptep); + u64 spte = *sptep; if (!is_accessed_spte(spte)) return false;