Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3098831rwd; Fri, 16 Jun 2023 12:11:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XqL5IJh7eciq5XcwZncKwNDgW7H571TSWSynJhMTsVppBEutivfkjykB445iWlVAaTPF5 X-Received: by 2002:a05:6a21:108d:b0:114:f824:67c with SMTP id nl13-20020a056a21108d00b00114f824067cmr2505551pzb.33.1686942715364; Fri, 16 Jun 2023 12:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686942715; cv=none; d=google.com; s=arc-20160816; b=AGdepdC9zkTa91v4LYDLCrFhGgN+yHyvRbZ8pbDKj2UJQpfzOOiK/HiEJB+Rtt+5aC Us/ENpwvzOwj73irnk9oXbWzfC1QPDXONUpUoybGFu9TAYe+3Sx+ZEHgEsW5/rMG9bXe wdsMUvtts+29bzqJC0Isuumlg0KlC25Cv1rrrwCsDStBfsiFHlrUCZ2YGvhX5VKZVOaN wVMsfKnVbyRg1UeVh5iOhQoWZWQy4/ZIsAu7mw8oJtfdCoTBImUs3I65RdG1TDvyUN2x BOw9rvn2U3Ek2nvSw//nRJrZEoHObCOUOht05TlVtGeqcYez1lKtpunMI7LY03L9rU3K f6ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=bXxXe22E+eki9MrnMaj+ggUpo157SDobcL5kHe+WAic=; b=nMTDlTNNfPYcS1iEH6bSD7z0LkM3Ve3vlL/SGjuBHPtD/vZ5FaYFJSy5/DX47lGnAm czqq0/TuAhkiKqrjjJfXMKUj4OKhQrsvHAx18wAB0SyG2UZYVWP3qb5JLm54wgGy/EKQ nSCpy/BaFIT/rVRrQFPbx46OZZlYL/KCiqOEyad0LXE7r6QHkJcGBf3BesLL5FBb1Glm idwXMvEtAMMlCsgQ0PFC5+8Vz9/GabS5qu8l0q7PpVdxqLmik5A8fyAerxr3Yy5eDlyt NeLQeXpU5PL8KKrOz7sJJOOI/krN74kbT2wnCW9Omvmj8ku3PVngOHq5RYBS/cwuVqgt 359g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Hw86hCOP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a638f14000000b005533e804223si2224829pgd.20.2023.06.16.12.11.42; Fri, 16 Jun 2023 12:11:55 -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=@google.com header.s=20221208 header.b=Hw86hCOP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232422AbjFPTAe (ORCPT + 99 others); Fri, 16 Jun 2023 15:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345411AbjFPTAY (ORCPT ); Fri, 16 Jun 2023 15:00:24 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3CA93C2A for ; Fri, 16 Jun 2023 12:00:15 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-57003dac4a8so45006837b3.1 for ; Fri, 16 Jun 2023 12:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686942015; x=1689534015; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=bXxXe22E+eki9MrnMaj+ggUpo157SDobcL5kHe+WAic=; b=Hw86hCOP2CHeGuNxPCyMHj6CM9vtw/JxFPKCgtdwpbTYrkI8rqTXkVyJFIUJe+K8bB fGRjXt4efYlQlvH5JgEWQbgRoVrXNSagZ3oeG6R+7eNxfV4ESk/5yYe7S3F3OB2klX9W 6LReKj+zkai67q1m5zugTSYCJWzeGAzp0SEG0ihWEdiOXrs1g4/qI9nVlAL/Z0WljqPI 2VMzSkwdtMNVLvXQrvOsM6Srz1DKZuXpglj58R0+favfEyHtvDIZxbOhMJMKclhxjf1B KQ4tB40PbFYNNROaXKTtFLF6rFfwTvX9fLSFoP94OMXUydtqLMXQRJH+XOFEidRdKpUN 1zNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686942015; x=1689534015; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bXxXe22E+eki9MrnMaj+ggUpo157SDobcL5kHe+WAic=; b=YGl2t3YrZXbdN7qaHnw+aLIN+TbmqeV4LV8kniHjEC/DYlvuP17AtvNdj3+wExRR3b GSggXRHW79S+XwUT+oSTZOMNh9/Z6GIo3h4fKAid+V2U48YtUh8rFT/u13tTuL3SMw21 +qKAAWbi2krS22cioyShhLnVUwhSUCgUwJ6E/g79EoH6UqJyeC2/zd7hitR0jTZZHr8V g1hIC9IZRAZnVKbbhxMqWKltM0md9Dkfq5RtqtOzYaBetUj4SVaxEthWdPXfpAEcueEl fTi+PN3MvotZ5Acsf/xTMUcwQu9dd1w5wdwH9pxX1KMxiPyyX8DIipFKWNiq7C2qShnl xTNw== X-Gm-Message-State: AC+VfDwooPJZdm+V0oUDSTi2FDyksU7vM+gl0PLOd9vDu65IqZXY+m4q wygWDLLlG18TOtGhymHek5FAqssZKU4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:1702:b0:bc7:f6af:8cfe with SMTP id by2-20020a056902170200b00bc7f6af8cfemr8392ybb.4.1686942015019; Fri, 16 Jun 2023 12:00:15 -0700 (PDT) Date: Fri, 16 Jun 2023 12:00:13 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230603193439.502645149@linutronix.de> <87pm694jmg.ffs@tglx> Message-ID: Subject: Re: [patch 0/6] Cure kexec() vs. mwait_play_dead() troubles From: Sean Christopherson To: Ashok Raj Cc: Ashok Raj , Thomas Gleixner , LKML , x86@kernel.org, Ashok Raj , Dave Hansen , Tony Luck , Arjan van de Veen , Peter Zijlstra , Eric Biederman , Vijay Dhanraj , Paolo Bonzini , Laszlo Ersek , Gerd Hoffmann , Andrea Bolognani , "Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?=" Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=ham 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 Fri, Jun 16, 2023, Ashok Raj wrote: > On Wed, Jun 07, 2023 at 08:46:22PM -0700, Sean Christopherson wrote: > > > > https://lore.kernel.org/all/BYAPR12MB301441A16CE6CFFE17147888A0A09@BYAPR12MB3014.namprd12.prod.outlook.com > > > > > If there is a specific test you want done, let me know. > > > > Smoke testing is all I was thinking. I wouldn't put too much effort into trying > > to make sure this all works. Like I said earlier, nice to have, but certainly not > > necessary. > > + Vijay who was helping with testing this inside the VM. > + Paolo, Laszlo > > I haven't found the exact method to test with secure boot/trusted boot yet. > But here is what we were able to test thus far. > > Vijay was able to get OVMF recompiled with SMM included. > > Thanks to Laszlo for pointing me in the right direction. And Paolo for > helping with some basic questions. > > https://github.com/tianocore/tianocore.github.io/wiki/Testing-SMM-with-QEMU,-KVM-and-libvirt > > Surprisingly SMM emulation is sadly damn good :-) > > Recipe is to generate SMI by writing to port 0xb2. > > - On native, this does generate a broadcast SMI, the SMI_COUNT MSR 0x34 > goes up by 1 on all logical CPUs. > - Turn off SMT by #echo off > /sys/devices/system/cpu/smt/control > - Do another port 0xb2, we don't see any hangs > - Bring up SMT by echo on > control, and we can see even the offline CPUs > got the SMI as indicated by MSR 0x34. (Which is as expected) > > On guest, the only difference was when we turn on HT again, waking the CPUs > from INIT, SMI_COUNT has zeroed as opposed to the native. (Which is > perfectly fine) All I was looking for was "no hang". And a normal kexec > with newly updated code works well inside a guest. > > Would this qualify for the smoke test pass? I'll continue to look for a > secure boot install if this doesn't close it, just haven't landed at the > right spot yet. Good enough for me, thanks much!