Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp315629rwb; Fri, 2 Sep 2022 14:52:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4hCRvtG8REKB66dFbPbVyyHxdLOWEfBWAbazRMsju5jw60H7zxj7jn9jKMd39XPMS0JelC X-Received: by 2002:a05:6402:4301:b0:448:d506:e2e5 with SMTP id m1-20020a056402430100b00448d506e2e5mr15471983edc.153.1662155531582; Fri, 02 Sep 2022 14:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662155531; cv=none; d=google.com; s=arc-20160816; b=zGU93q/p+tmf/eIMqBYW5TbmO/Jgc4cvstw8d/T6GjT6utHBO7Qo+oZ7V6L6Dfpxrc FcIgAUWxeaJTlwtKV+SX5srF+nvxIXmKR8iZjBJ77sTYSYINxVrcpE5XftmfY3q0Xa8W wOYojxqrHkBeB3kSMoVlIIWBV1ii4gku7uwkJg3GoQhAk22NTc2c3uOIisdHZUns1Ry7 A+wqe7r29zg4F/xsnQnk/EjnDy5gVTIryJqf1JZ9xszw/+n5VPI1lWpWBJIweAo6K9cw fpy5cAQD9n9f7kDPA5W6O1HZ3rtYgbSP84pwGjHJfG5BHiijeb6Bp7wo2zM/Hm1UuBDQ lAoA== 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:mime-version:date :dkim-signature; bh=7p/pVhO//z9oA0+3ehhWhRYoWNhMazEWabTOfrMwCBI=; b=PcvK15AiME//Yd9wK8R1BiCIflCqI7a9vfKjqt6GnZR7eIKNHa+bwitBMp/6q+mhn+ SQQ4FLcwkKUz4KgYcKHZy9syHlyYsomMn/yn+DlAcJokSqIHz/wjfQYgwB6m/5jmH+xK EO/fGV69koqMjM0PcsUAEhBImzaIXMeiEbG8Jlasz4GPIPH+fEC+v/RW3d9apN2w7shz L1gE78/UBiosLMkO4VFkQukrkZJaCayfXfjqoaAEQm12DGKGxSR0EkB4J/HeEAyHEfLh UxrOvM8selRS/IkGcuMajPtzU5SZuqOiaWR3d7bsDEBRhKK9XHriOtscEyLlnH4Tt8tm Qonw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=U1FspX5p; 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 4-20020a508744000000b004478d537a3asi2431776edv.312.2022.09.02.14.51.45; Fri, 02 Sep 2022 14:52:11 -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=20210112 header.b=U1FspX5p; 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 S231189AbiIBVh4 (ORCPT + 99 others); Fri, 2 Sep 2022 17:37:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiIBVhy (ORCPT ); Fri, 2 Sep 2022 17:37:54 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7632F4C83 for ; Fri, 2 Sep 2022 14:37:53 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id 2-20020a17090a0b8200b001fdb8fd5f29so1537124pjr.8 for ; Fri, 02 Sep 2022 14:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date; bh=7p/pVhO//z9oA0+3ehhWhRYoWNhMazEWabTOfrMwCBI=; b=U1FspX5pOwKhMsjcfEYWr4CxrOAVY+erKLliXFVLjDu3sVyCqFx4ZJQODymf1S33Gn tYTcl5Z/41D/yViGp4Z/FGV8UcCPsuZyQ3HU6okNj5bU0RIkAdaOeWV8vU1u0doXK+Hx GPQ5vZLBwP/M872C1Y7kJQXecwH+Q6Ed2TaMsmNt7Cmgf1Gjlxb5mOW7rWqu7wkCcDsn apas//jQRnAZhnowwCsVjjICO8uszZRpBfjaUJTKVCa3wLgSsj3MRi4Egj0oALmkH/6N I5XjzJQtvasfatbOdAjMjyGJG+mh5X/SllQ/C4taSBumlS6FFnvYTnUB4oTN2nMai1eq 0AmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date; bh=7p/pVhO//z9oA0+3ehhWhRYoWNhMazEWabTOfrMwCBI=; b=drI99TU9uDscGDwZRu2ojnKQLxVgrUHISjiXL8ohG9fIqAcWsBru/WEmYIhixLOiEU yKTaXbqseUpGo1tQeqF3abHeFW20S8atwCOc7t+GWhSWqh2N5sDUUBQx2ueWFk6kntoh O2q1j1LSqIiPPzC33BgkYY45T9kK13jrIjqA0T2IVkbeNOeOAgwlpLJylBnu2Mv6TTLh pgH6/lpTYu/3pJvYg0fe9US4dc9RDyKayxLASdF4xmcqqnY9dG5zvO8RS7A69QzxqBO0 1hZkVniUTuvFlg3NT2G416OtkbvxTZJhN9eaJyyORLB3DijSytyDFh3Dq0SRz6JlrDH1 iZUQ== X-Gm-Message-State: ACgBeo3w+XrhiZtSNECA5LzR6QvTnFH6UCf+Bqzgld6UmA2Wfhxt1kuv 9cYE8xR5gl8LchR1LX3IWBTd7HIG X-Received: from fawn.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5795]) (user=morbo job=sendgmr) by 2002:a17:902:b68f:b0:173:188f:5fa1 with SMTP id c15-20020a170902b68f00b00173188f5fa1mr36541046pls.155.1662154673445; Fri, 02 Sep 2022 14:37:53 -0700 (PDT) Date: Fri, 2 Sep 2022 21:37:48 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.37.2.789.g6183377224-goog Message-ID: <20220902213750.1124421-1-morbo@google.com> Subject: [PATCH 0/2] fix clobbers list with ZERO_CALL_USED_REGS feature From: Bill Wendling To: Juergen Gross , "Srivatsa S. Bhat (VMware)" , Alexey Makhalov , VMware PV-Drivers Reviewers , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Cc: Bill Wendling Content-Type: text/plain; charset="UTF-8" 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 The ZERO_CALL_USED_REGS feature may zero out callee-saved registers. This needs to be properly modeled by things like code alternatives. Otherwise, it's possible that a callee-saved register would be expected to remain unchanged past an ASM statement when in reality it isn't. Bill Wendling (2): x86/paravirt: clean up typos and grammaros x86/paravirt: add extra clobbers with ZERO_CALL_USED_REGS enabled arch/x86/include/asm/paravirt_types.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) -- 2.37.2.789.g6183377224-goog