From patchwork Sat Feb 26 09:52:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: luofei X-Patchwork-Id: 12761247 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCE68C433F5 for ; Sat, 26 Feb 2022 09:54:37 +0000 (UTC) Received: from localhost ([::1]:57022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNtme-0003G1-72 for qemu-devel@archiver.kernel.org; Sat, 26 Feb 2022 04:54:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNtl1-0002ZX-Ed for qemu-devel@nongnu.org; Sat, 26 Feb 2022 04:52:55 -0500 Received: from eage.unicloud.com ([220.194.70.58]:14523 helo=spam.unicloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNtkx-0001hW-Cd for qemu-devel@nongnu.org; Sat, 26 Feb 2022 04:52:54 -0500 Received: from eage.unicloud.com ([220.194.70.35]) by spam.unicloud.com with ESMTP id 21Q9qZ68097417; Sat, 26 Feb 2022 17:52:35 +0800 (GMT-8) (envelope-from luofei@unicloud.com) Received: from zgys-ex-mb09.Unicloud.com (10.10.0.24) by zgys-ex-mb09.Unicloud.com (10.10.0.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.17; Sat, 26 Feb 2022 17:52:34 +0800 Received: from zgys-ex-mb09.Unicloud.com ([fe80::eda0:6815:ca71:5aa]) by zgys-ex-mb09.Unicloud.com ([fe80::eda0:6815:ca71:5aa%16]) with mapi id 15.01.2375.017; Sat, 26 Feb 2022 17:52:34 +0800 From: =?eucgb2312_cn?b?wt63yQ==?= To: qemu-devel Subject: =?eucgb2312_cn?b?tPC4tDogW1BBVENIXSBpMzg2OiBTZXQgTUNHX1NUQVRVU19SSVBWIGJp?= =?eucgb2312_cn?b?dCBmb3IgbWNlIFNSQVIgZXJyb3I=?= Thread-Topic: [PATCH] i386: Set MCG_STATUS_RIPV bit for mce SRAR error Thread-Index: AQHYDdpiM0Sj+cD120OyD4W4YWbm6ayl0VSf Date: Sat, 26 Feb 2022 09:52:34 +0000 Message-ID: References: <20220120084634.131450-1-luofei@unicloud.com> In-Reply-To: <20220120084634.131450-1-luofei@unicloud.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.1.7] MIME-Version: 1.0 X-DNSRBL: X-MAIL: spam.unicloud.com 21Q9qZ68097417 Received-SPF: pass client-ip=220.194.70.58; envelope-from=luofei@unicloud.com; helo=spam.unicloud.com X-Spam_score_int: 37 X-Spam_score: 3.7 X-Spam_bar: +++ X-Spam_report: (3.7 / 5.0 requ) BAYES_00=-1.9, CHARSET_FARAWAY_HEADER=3.2, HTML_MESSAGE=0.001, MIME_CHARSET_FARAWAY=2.45, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Marcelo Tosatti , "kvm@vger.kernel.org" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" ping https://patchew.org/QEMU/20220120084634.131450-1-luofei@unicloud.com/ diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 2c8feb4a6f..14655577f0 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -537,7 +537,7 @@ static void kvm_mce_inject(X86CPU *cpu, hwaddr paddr, int code) if (code == BUS_MCEERR_AR) { status |= MCI_STATUS_AR | 0x134; - mcg_status |= MCG_STATUS_EIPV; + mcg_status |= MCG_STATUS_RIPV | MCG_STATUS_EIPV; } else { status |= 0xc0; mcg_status |= MCG_STATUS_RIPV;