Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1678409rwl; Fri, 24 Mar 2023 14:01:11 -0700 (PDT) X-Google-Smtp-Source: AKy350aerHRN6X6PCGiF85HHlYYGXzTTHXY3rX3f3fM1s4SAXQZg4nDf4tp1gIpqHmw/Pn9vAok6 X-Received: by 2002:a17:907:7fa6:b0:931:99b5:6791 with SMTP id qk38-20020a1709077fa600b0093199b56791mr4840910ejc.72.1679691671175; Fri, 24 Mar 2023 14:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679691671; cv=none; d=google.com; s=arc-20160816; b=GSi/Onid/ZFgWfyBUw6V1I+RkOdTIqByHjBrNg0MtttwXnW7uIQ+D7x6WyLl8QOcaS 8XADkQCxF6sj0b1YVJJ7gTT87/4TyCFCsxcW1dU94t0gxNZWpoA53/7w7Urwjv6VrlqA bof/ePYcL6ndQlRoTsJUkh7h/6xWUzWeV6O5chxjnTQJTAeNf4KSRYEnoZg/wYBCR++G ntKCCIZCUfNPVe//CC1VB22+5ipIs8RGbtA5qRrImwS5U4KtMLLGbD+tpbs2dulmm6f5 FvuEFDo4SGoAqLfFRVqLLB29PdT5wJop2UfCpg2AmgnFLsIIhtOnbLRYmMXVdiKiAydJ rVHA== 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=F2jYHK/36TTMGEf+vUZdYHNzyGqkJ5Ut4lpXrQmPUN4=; b=f1DsIDe9ZKJ4BoY8Q1zbnU/FVXbZ4aKG1swt5awAZoQpsHFCxJt1xZkh/G+iSZCt06 roRSKexCwqWF7oQnPczVv/fLJLc/PGly42oMi2lAcyVhQ99sXwrZYUKqQB202oTZY5yv 03aPgcIXnb3i6xFULfftvh+i75mJKWoX7YaMwWPunlxNyiANXpmaUPO+TRbPH+9xB/L7 wRBsSBSy1Fdtlz8mF6IAzIQCVSFgU8/AyDKE8hWCyDoFQMGcna/u1HoezTuP1uaxdJDz ZftMCf2+dfkdG/KEuynBGOC1gJ4X6UscvtQ7gYaGh5R5PKHR84L3ZD9DCef0L1ANzTij Vd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="WD/eHEOV"; 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 d2-20020a170906c20200b009318221fa58si21640111ejz.384.2023.03.24.14.00.35; Fri, 24 Mar 2023 14:01: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="WD/eHEOV"; 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 S230418AbjCXU7D (ORCPT + 99 others); Fri, 24 Mar 2023 16:59:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbjCXU7B (ORCPT ); Fri, 24 Mar 2023 16:59:01 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F795FD2 for ; Fri, 24 Mar 2023 13:59:00 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id a188-20020a621ac5000000b00627e6740be6so1546308pfa.21 for ; Fri, 24 Mar 2023 13:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679691540; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=F2jYHK/36TTMGEf+vUZdYHNzyGqkJ5Ut4lpXrQmPUN4=; b=WD/eHEOV/becNPQA71fYe7CPx2SDa8IZ+QG3ASaKl7+Aa/2W0ww1EY/gB9ZWKyci3p awCYEYlpxMq7X8XrumGblllXOlMgGRob/laJDJS1gfeE2XN1sJ8+RghqgDGovCekmZfR EGwvQudUon9uVCIls89hXeI3n29h+73DJEIRCwiNnpIFMuaRrB4k/jKpV1h/C+lUz+as w/sKZKslPqC9gfaeoklMz5sQ3D5T0Wz2nOAitEZh3ogu9aZLDj4noZGKzW/P7Bj0PjSK WZR9gWnE+0jmkqzM0Kr2as3bgAkNr7b4GVejTY1iCBeumXPfh4SeL5B4zX+RusagJFYs PGrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679691540; 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=F2jYHK/36TTMGEf+vUZdYHNzyGqkJ5Ut4lpXrQmPUN4=; b=d8T79T8IwEdd9qVnhawCLZdDz4es/QvsZ7ftJhySLq3KJxMbKoxothmKz1do5BJ+SH DQVWS5ljXQqikVLMyFi/WjbAnklmuNAlYcJV99L0Z5OcqTiINpBk2TmjBONyOFeRXrvt OfOZx7yttNfbpcGxTtDvXNw1X6sKWtaYxqs/2GqA9ImlwDL24khJQqzB/WzUb7fPVrp6 wecIivcbwkr2uF1t1UQVGBB8l7f0e8aTQG+YyfpDD1U7kHA3yExtWEbAfFllsAGiOuzh 11ST8pqFviB1Xz4/XGNi5ucORoPFpnHIlShIM8NZm/bVeX2uavVHDTzPzYEVoYhvNO1n G6gQ== X-Gm-Message-State: AAQBX9fX8rQOc6adpwFNjWCAP5E4xfW7DJ1VFtLg97VArN4BSNtyhbhh 5M/aKXr/BhaRdixoPuvqL+FEN3YBDw8= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a63:4d52:0:b0:507:68f8:4369 with SMTP id n18-20020a634d52000000b0050768f84369mr1010865pgl.12.1679691539968; Fri, 24 Mar 2023 13:58:59 -0700 (PDT) Date: Fri, 24 Mar 2023 13:58:46 -0700 In-Reply-To: <20230227180601.104318-1-ackerleytng@google.com> Mime-Version: 1.0 References: <20230227180601.104318-1-ackerleytng@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Message-ID: <167969137156.2756401.15618241992481271147.b4-ty@google.com> Subject: Re: [PATCH v2 1/1] KVM: selftests: Adjust VM's initial stack address to align with SysV ABI spec From: Sean Christopherson To: Sean Christopherson , pbonzini@redhat.com, shuah@kernel.org, dmatlack@google.com, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Ackerley Tng Cc: erdemaktas@google.com, vannapurve@google.com, sagis@google.com, mail@maciej.szmigiero.name Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Feb 2023 18:06:01 +0000, Ackerley Tng wrote: > Align the guest stack to match calling sequence requirements in > section "The Stack Frame" of the System V ABI AMD64 Architecture > Processor Supplement, which requires the value (%rsp + 8), NOT %rsp, > to be a multiple of 16 when control is transferred to the function > entry point. I.e. in a normal function call, %rsp needs to be 16-byte > aligned _before_ CALL, not after. > > [...] Applied to kvm-x86 selftests, thanks! [1/1] KVM: selftests: Adjust VM's initial stack address to align with SysV ABI spec https://github.com/kvm-x86/linux/commit/1982754bd2a7 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes