Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1593086ybg; Sun, 27 Oct 2019 00:48:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqXbKlmL8k2kyWprkic/s33lab/vSSBgiRR+Y1Jt/ekynogKtfqKVkuTffjnXdV7e6+CYO X-Received: by 2002:a50:b901:: with SMTP id m1mr13116702ede.203.1572162491490; Sun, 27 Oct 2019 00:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572162491; cv=none; d=google.com; s=arc-20160816; b=JI82T80tRWXSnasYF9ic+WQaj53ZuM7wn1lWBTZsjkPUvVJtHp6k6a1xV0BObNXDKg 922fB6lUu1YlKZKROoKowMW3pIjLmTuYua5ame/q2UDTwioxsuKKJaSxgDBTCaEnmKG5 f5AuLo5SWlspINkcGMPVXlWl6MsVU1IBWIxXzHfLGkuXm3pxmMO+b77ITk6nmBRPbDyy bqIPy2QPk2ljD03dVki43KWMaa1FcGvQHB+0KWnxJLDIDVoiPRRAs0ZHiw71auPlvYvN uZIohBavBqyIgJbwNy49z8zPU1x0iAxjVc1zLj5vTICAWhmQ1GkYylVrm7uovhey9hnT A56Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=a0M44UljfbT2SdPpX9Ecr9I+APV48yttymLhZw4Mw2Q=; b=rKT4MLXwmPn0stWunQ2JUJ45oxyj+HnqDD/5WL7woDG0qxBygDn+tdWSyohAH4NbIB pi5sze68PNyitnDO5TPG1WtdXelwOOpf0eo10b8I7SonmJ7gcVVTywDs94pjgRu2xS8P 1+/+MBx8gTYZTRyHC7jn+Cz9Iw0SG9ODO5aorsjUS6PwHhLBwmTHQfBXBTnWJhfOSahc eR/zFHQNouvpxjD7eYfvCBUC/U/D2ZehEKZUBAgdAYDWfenW4GvubuGqn2Kz4xReZrqx fFKhfvMCdXxIygAS4e0ol/9x6lGeqPDf+m4IGZXGjeBDfNWJ9VnEG72iaKSJMiz/RZ36 HIjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si4799891eda.30.2019.10.27.00.47.37; Sun, 27 Oct 2019 00:48:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbfJ0Hqt (ORCPT + 99 others); Sun, 27 Oct 2019 03:46:49 -0400 Received: from mail.loongson.cn ([114.242.206.163]:48769 "EHLO mail.loongson.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfJ0Hqt (ORCPT ); Sun, 27 Oct 2019 03:46:49 -0400 Received: from localhost.cn (unknown [10.20.42.25]) by mail (Coremail) with SMTP id QMiowPAxmcRZS7VdbMQYAA--.12S2; Sun, 27 Oct 2019 15:46:33 +0800 (CST) From: Xing Li To: jhogan@kernel.org, paulburton@kernel.org, ralf@linux-mips.org Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Change KVM_ENTRYHI_ASID to cpu_asid_mask(¤t_cpu_data) Date: Sun, 27 Oct 2019 15:46:31 +0800 Message-Id: <1572162391-31139-1-git-send-email-lixing@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: QMiowPAxmcRZS7VdbMQYAA--.12S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtFWktw1rWw47uFW3ZF4xWFg_yoWkJFX_Z3 W7Zw4k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linux-kernel@vger.kernel.org The code in decode_config4 of arch/mips/kernel/cpu-probe.c asid_mask = MIPS_ENTRYHI_ASID; if (config4 & MIPS_CONF4_AE) asid_mask |= MIPS_ENTRYHI_ASIDX; set_cpu_asid_mask(c, asid_mask); set asid_mask to cpuinfo->asid_mask So KVM_ENTRYHI_ASID should change to cpu_asid_mask(¤t_cpu_data). Signed-off-by: Xing Li --- arch/mips/include/asm/kvm_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h index 41204a4..6be70d5 100644 --- a/arch/mips/include/asm/kvm_host.h +++ b/arch/mips/include/asm/kvm_host.h @@ -275,7 +275,7 @@ enum emulation_result { #define MIPS3_PG_FRAME 0x3fffffc0 #define VPN2_MASK 0xffffe000 -#define KVM_ENTRYHI_ASID MIPS_ENTRYHI_ASID +#define KVM_ENTRYHI_ASID cpu_asid_mask(¤t_cpu_data) #define TLB_IS_GLOBAL(x) ((x).tlb_lo[0] & (x).tlb_lo[1] & ENTRYLO_G) #define TLB_VPN2(x) ((x).tlb_hi & VPN2_MASK) #define TLB_ASID(x) ((x).tlb_hi & KVM_ENTRYHI_ASID) -- 2.1.0