Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2576715imw; Sun, 10 Jul 2022 09:44:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ugwCrAchvrtPchvISoSegzz/9+p3gOSWyA95J61UB8ZIQRINiOgtWgk0RiPiuWa+GIirie X-Received: by 2002:a05:6a00:2181:b0:51b:560b:dd30 with SMTP id h1-20020a056a00218100b0051b560bdd30mr14450240pfi.44.1657471441545; Sun, 10 Jul 2022 09:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657471441; cv=none; d=google.com; s=arc-20160816; b=V/LG+Gz1hCdzD7sGQ3dmDNA1r0xLaguAN//I5v8wvNyrAOshkM11XjG7NFjH6Y3nBN SHstjt9tNkhMC30I6ed/1vuU36FRAjatHgaBK8I7LfV+Jl7pr2Jw/Jnq8MOL4n93l/yG 1Zmrvu/DudfuqIIpitKVw0d+8jkf4fHqALl8xfaRqNWaCFx/l+Z8Q6HnTGPFLsM6snWZ 4IQjz4myQpnukFOwiCde9d3qx1bKFCRNCpxUZRLsC0vPQ5KhEh8oW/xW4yIYdmw+1n9n r+s+B24WT3vfzZ17hRIMszvQiKSs5vJhdPk5gl8Mn1V0+m+VnR1y7KsKYMgkt5XICoMO xLHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=hcSBWuPanw+MSnwNJ3oSObjsYDtvUnp4dMZLTgyW6kg=; b=pSU19TNbdS5bkMQBTyX02C8anedsXPk8Kl51j4YN5NJtv3OOXSRHpM9pkVbKBKZWqJ k0LNF1QKWp3sySH6BUKponSm//lF7xmCdxum8YG0knLM9C+fy2rUayRBAjrbsiDoPZ1k nuN69vS3saWcfdG77jhnZLk5DK1PEnEgWDJlqp2zOn4tha+dEH5rrsfxGNSyeEe8EEM6 b616f83AhNs/ePO1nVSWLLqwdP5No731fTceaEUIcLsSiwVEIgrDW/2xtCD/ggMyC2c8 HrvYQazScvxaGe/lSD+SX9HghkyzGBREFAOMqUQX7d/DW/vkTUYhVMO0fs5THIFfMv92 v3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IOGWYmD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a170902e5c400b0016c40f8cb7dsi2868824plf.176.2022.07.10.09.43.50; Sun, 10 Jul 2022 09:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IOGWYmD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbiGJP6T (ORCPT + 99 others); Sun, 10 Jul 2022 11:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiGJP6S (ORCPT ); Sun, 10 Jul 2022 11:58:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8534612A9A for ; Sun, 10 Jul 2022 08:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657468696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hcSBWuPanw+MSnwNJ3oSObjsYDtvUnp4dMZLTgyW6kg=; b=IOGWYmD9IqUtAGXw3hzzpMwVJbprbjV6IMchf/28UgX2x4RPzj/qXL7jCHIvtyeTWFi9K6 XFO9cr93QX0VTRH7h3L9yV00/GBZPzLFNYRxLj8A7WEYhggCGniCSdEcihKpfgDvt/l1qe 09H/COP6T5KNC5yAe74dMVutklFTwfI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-550-hfGJnngzN6Cz-QVcSiGrKg-1; Sun, 10 Jul 2022 11:58:11 -0400 X-MC-Unique: hfGJnngzN6Cz-QVcSiGrKg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ED8772A59547; Sun, 10 Jul 2022 15:58:10 +0000 (UTC) Received: from starship (unknown [10.40.192.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7413D2026D64; Sun, 10 Jul 2022 15:58:08 +0000 (UTC) Message-ID: <527713984b43e372e569209f394c54520d3b3e60.camel@redhat.com> Subject: Re: [PATCH v2 00/21] KVM: x86: Event/exception fixes and cleanups From: Maxim Levitsky To: Jim Mattson , Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Oliver Upton , Peter Shier Date: Sun, 10 Jul 2022 18:58:07 +0300 In-Reply-To: References: <20220614204730.3359543-1-seanjc@google.com> <7e05e0befa13af05f1e5f0fd8658bc4e7bdf764f.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-07-06 at 13:11 -0700, Jim Mattson wrote: > On Wed, Jul 6, 2022 at 10:52 AM Sean Christopherson wrote: > > > Hmm, I'm not entirely convinced that Intel doesn't interpret "internal to the > > processor" as "undocumented SMRAM fields". But I could also be misremembering > > the SMI flows. > > Start using reserved SMRAM, and you will regret it when the vendor > assigns some new bit of state to the same location. > This is true to some extent, but our SMRAM layout doesn't follow the spec anyway. This is the reason I asked (I posted an RFC as a good citizen), in the first place all of you, if you prefer SMRAM or KVM internal state. Anyway if this is a concern, I can just save the interrupt shadow in KVM, and migrate it, its not hard, in fact the v1 of my patches did exactly that. Paolo, what should I do? Best regards, Maxim Levitsky