From patchwork Wed May 19 18:30:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 442508 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1606793jac; Wed, 19 May 2021 12:07:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFZsJNVYzUdSkdzqcJ/7q4dUoG6S0kmPGvxMhbo4t7MrTTJmQEUfOcbLw8igI4aHH/9nrD X-Received: by 2002:a6b:d615:: with SMTP id w21mr1084900ioa.74.1621451269579; Wed, 19 May 2021 12:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451269; cv=none; d=google.com; s=arc-20160816; b=hrED8f4AvvDgaq3XiYRT665YGtE19QrCvEKGQljefEJVqxBZEFdObSXdR8btU2O3R4 U/oYzE5ft5zbZI7c5hZhw89nJ0y/flgGErGIQZ8yNcjpOS3j5UIzUkX0fxBvzZSHj0Ak xUa3gDwuZQTjJIqJiYw5tXM3xFVpWBK7b8DZTYzuJrdSbgOXH/Z90ZBvm32zuoDNZzEU O/eMSfYXm+izcsGyKW2RrVK1BkYlow/Vt/9XcmWGjuKOewhmgavuw+NtpiY+3tIN0h95 efwNmVpX5q+JdcAF+jnLTXmPggMCjJxluuxRtuaEKiExoB1TL9NUVuTdDc5sQrn28VHs C5jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=EuZn+pX4L8/1GsX4Y2iVsbbPTiTW2IOoX08dYPiqnSg=; b=O6GOkbuiafOBM8rOxo2g/+IGrJBd5ljDAPJECYWAcbARr97vvpdTAcMs59cqEl2gLY YfHtCDdOvYFp+rh94cwpzLrcS5vHfHBlzUKidPFcl5tC4s8UVZfVIfKEnZpFAWAUgG+U Hcr/vUGVJ0TBin653/uby1zgjwJ3tJJOqjXsCirUHMiQ9HuQ4626mcyfgGMc/AKT0HEM Am8jj5lJO+IkgzDd/re3KV2YZ5b9r7Xdh8OrOqDQvLWmU8UZOmj+BY6pJMbn5sMkA41T pMfGa5zOeomtfpEOkHNJpGqVhzbtqrXM+6QWt15mDWJYfaaHhwb0wyhK6Wfca8gDksR6 lBcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=boPUwZtU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u10si143092jad.109.2021.05.19.12.07.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 May 2021 12:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=boPUwZtU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljRXo-00049S-Uw for patch@linaro.org; Wed, 19 May 2021 15:07:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljR1l-000313-CY for qemu-devel@nongnu.org; Wed, 19 May 2021 14:34:41 -0400 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:40456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljR1i-0007R9-KB for qemu-devel@nongnu.org; Wed, 19 May 2021 14:34:41 -0400 Received: by mail-oo1-xc2a.google.com with SMTP id j26-20020a4adf5a0000b029020eac899f76so1436997oou.7 for ; Wed, 19 May 2021 11:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EuZn+pX4L8/1GsX4Y2iVsbbPTiTW2IOoX08dYPiqnSg=; b=boPUwZtU51qkXfTX/M8wXnEORo2Qg39XWkht8gVV2rvzmhDBaDEmqKOrcVNRq5wqKT HmY7174f5aGAYW747Ov6Q3z55gaO1/Z+ffs+bvt+oJFkxa+6dlmJeto82VduNHWclPbW 5ZcP5g5urKRp7mtlGuulzG4dYJMzs/Vao3TC6DvNkawop3oBFnhVfnhsr8LfhfUMKfgh xxYAjKDaSl6T4DWs/gdFM42ZMwraUUP6dWH/T5Ge8mZyF/JSGnPZ9nDQwfpGfBPl2hH3 VcIFMY0FVfqAqlfHHtPunCjfaG6Jx2quI9Zr/pN2xSbiog5V86C8u1YmKrEKt376v/aU k6cQ== 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:mime-version:content-transfer-encoding; bh=EuZn+pX4L8/1GsX4Y2iVsbbPTiTW2IOoX08dYPiqnSg=; b=OKrZl9oezNeYfK2X6S/3Kbu8yZyko8EJ3velnqafujl5k2LSGYiqg0m0dAai5D7/5g /wMmg9VJA4KtQATf6eUJ9/M6g3DxiHt7xtVgvNhCr0tOP5agnYEIGAKUU+VfT5ZzdbOk aVH4QhH3JYwglic0aakNk2XihN+JIjw5W4o5Sd9T1v8eiiXdl2lEnhzn5DyNicdjj0RK Sp4BtuoUjxox4d4GoujQ/R1TgP2DmoK+pbrdlN+JSeZyOPDUqBDQXhQk2iCoh70CRAwv u+lOiMQJ2VLavW2srywgOYxe1hccvmWX1vkZ09weLMvSLFhmv8wg9Bj81pIwwQ2XVY33 wrlA== X-Gm-Message-State: AOAM531xk2QUZLyGWwRW1apANAvQb3aYJNgJUQv8/kRMFnyoQWC0tV9d P6yf6oHoK/a31g87hr6Ef41b+m5GmyOmySD+ X-Received: by 2002:a4a:dc4e:: with SMTP id q14mr551120oov.43.1621449277511; Wed, 19 May 2021 11:34:37 -0700 (PDT) Received: from localhost.localdomain ([45.235.253.15]) by smtp.gmail.com with ESMTPSA id i9sm38642oog.17.2021.05.19.11.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 11:34:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 45/50] target/i386: Exit tb after wrmsr Date: Wed, 19 May 2021 13:30:45 -0500 Message-Id: <20210519183050.875453-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210519183050.875453-1-richard.henderson@linaro.org> References: <20210519183050.875453-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-stable@nongnu.org, Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" At minimum, wrmsr can change efer, which affects HF_LMA. Cc: qemu-stable@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Paolo Bonzini Message-Id: <20210514151342.384376-46-richard.henderson@linaro.org> --- target/i386/tcg/translate.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 9501089861..ef0ba822e1 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -7260,6 +7260,8 @@ static target_ulong disas_insn(DisasContext *s, CPUState *cpu) gen_helper_rdmsr(cpu_env); } else { gen_helper_wrmsr(cpu_env); + gen_jmp_im(s, s->pc - s->cs_base); + gen_eob(s); } } break;