Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp686212rdb; Thu, 30 Nov 2023 15:58:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8tcipnBzuoJYhcdpgsDUdA9nyunm7GY4EjJ9IiOdF4JOfwr31VmJnQU+M0rTjyZ/yHds9 X-Received: by 2002:a05:6a21:a598:b0:18c:a9d3:c363 with SMTP id gd24-20020a056a21a59800b0018ca9d3c363mr16325615pzc.41.1701388686530; Thu, 30 Nov 2023 15:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701388686; cv=none; d=google.com; s=arc-20160816; b=Q7NfG5K90Axo5b+Y8fPBjsUMEkG8LAUFJI4mO2w5OBW9P1fk5/Knc/Z10mmG7LVBqW IpEhYmC0KWgRssRT6b3OEUcmKp9mVeXa91k9t51Lolm8TX79eMOoFAOd+7PENTkpddQ5 gG8W5S9czEsXaLO2TFQiiYHAjBksABEIxzGI7nZMVHlR39w1KcTKMrnS+aeBRZXCQJCu QsuV/8k0oDkTQWMUpr7M8EcStEO6dVdDn1z292hLoNv/QZx/71oaHGeKfxLMd7m5ySWf EdpGx4qfOEPTGMmQyepV6FOsK5L4N5+0vC21jXiEVgRHjaESC6vHgmT3TZzS6h55XCW6 2MWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QS+i37UcwGBx82n3McWzPFFtU6IxiBbMiMBLppZu2kY=; fh=LbMRT4KttD79zgfr+ttSoRW4q4KcAUQTO4Rf413NZvs=; b=n7oIh4+yPIhCyMuOoS43xmM4aITwHatdA9jgXBZbmreub4ZmzCk8942hD338LPxMnw 8fRFjfIYSRudTQFOU2dEEKPi299wsvMRyUBpUyh+l3CoZWP0zTCFDZtjvmAmiQCBpfMu ypS0XtaQ+LcI44CyRBGmFXptNOO9Bv0+pAjuT7gZ35usWhdw97cX7WTNfbmQdHHrdHuU 0RzLh3+udZqwX0ckSefIQrkVd1B9rXojEYb+SvO+JSgle3ViSDXDaUYg6gr4LtxRQ3mn XhEfR4fYYVuvid4MTs4SxjQQ20yjVDLhj7MFOyNc/8gm08KzEgsG/c1ZPqN+JIdZCv8p jzUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ic6Dz9jZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id hq23-20020a056a00681700b006cdd218a8dasi2143406pfb.394.2023.11.30.15.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:58:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ic6Dz9jZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2B26080789B5; Thu, 30 Nov 2023 15:58:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377327AbjK3X5u (ORCPT + 99 others); Thu, 30 Nov 2023 18:57:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377294AbjK3X5t (ORCPT ); Thu, 30 Nov 2023 18:57:49 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359F710E2 for ; Thu, 30 Nov 2023 15:57:55 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-54b0c368d98so2483a12.1 for ; Thu, 30 Nov 2023 15:57:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701388673; x=1701993473; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QS+i37UcwGBx82n3McWzPFFtU6IxiBbMiMBLppZu2kY=; b=Ic6Dz9jZfE6/ShcyS9VI6yS8/XexbAMApKWQvuPLd3vusNRU0uMwg8CmKgXLMiOgif Aqz5y81MVZ+xfNsgUgPneanmnzOpzc8mF3gUm5/wkeU5NKfhKmV3skBZEnrb3SHqlZRd bSnbyXCbfqKbk/o+6+cYrkpoZiiNMyBGmC9SoUFC9hZ0FPzI3YqCaZ0obPUaQ/BknDOa EbeonPvHvQBfdj8ZdnwlLRiWANO6o7a2IR5NChYC6sgK3stGe+OP/J9acbC4e+EtB0ka DhDScowlMZexBAirkg5dQjYkDRzyCoEMTbYRpEIn89QyCXHO0Il6T8wIJHrb+bg5ZL8g M7OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701388673; x=1701993473; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QS+i37UcwGBx82n3McWzPFFtU6IxiBbMiMBLppZu2kY=; b=YAgeemUI+TFnCvGRL+WXmQwr0OMoTW5jE03L2mjLgPTmaEFwIODjuSXKQX3wW+bT5K 9ullyNn/eMORBsikSadwprxFQcr9PbbGyqLNjbngmEJg70z6cou5BZ2387EiQyhWCq0a 0XLY1r+iwE0ANeNtI3mAzpS8vVORkpYacjhRno8+ATXv72beNCt2hnA++rVh0hb1RjN4 JWUENy7645Qy5O3sH3D09xSZ6+9WpsUJ8Gs2Nk0pWrXXA31J5V647vUsGDceklolS4lJ GCCzuieK36MNqk6QkXf4SNlbpl9qoCrzKp3fDq3W0ui9rPnBzqB24bsWU9GqJ8qaul4J 641A== X-Gm-Message-State: AOJu0Yy2XAogA7qRv4HD5V3b7PfgSunk9TO7jQRAlsMDlfnbHQIwATRz JR9/UPdHpYrsrQa1De2JGsEWjGjJFGQg+rldxN3gmojrIosEmMqX6I8= X-Received: by 2002:a50:d083:0:b0:54b:67da:b2f with SMTP id v3-20020a50d083000000b0054b67da0b2fmr6508edd.7.1701388673458; Thu, 30 Nov 2023 15:57:53 -0800 (PST) MIME-Version: 1.0 References: <9a8e3cb95f3e1a69092746668f9643a25723c522.camel@redhat.com> In-Reply-To: From: Jim Mattson Date: Thu, 30 Nov 2023 15:57:38 -0800 Message-ID: Subject: Re: [PATCH] KVM: x86: Allow XSAVES on CPUs where host doesn't use it due to an errata To: "Maciej S. Szmigiero" Cc: Maxim Levitsky , Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 15:58:04 -0800 (PST) On Thu, Nov 30, 2023 at 2:00=E2=80=AFPM Maciej S. Szmigiero wrote: > I think that if particular guest would work on bare metal it should > work on "-cpu host" too - no tinkering should be required for such > basic functionality as being able to successfully finish booting. I disagree. Let's not focus on one particular erratum. If, for whatever reason, the host kernel is booted with "noxsaves," I don't think KVM should allow a guest to bypass that directive.