Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp553477pxb; Tue, 5 Apr 2022 13:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjqvaYQ1d/D2Q6k7TZP82UqxLqnEpgPIR8RbisNDvI5WMTNLQgWUNUizDwcY2O+2wmn23g X-Received: by 2002:a17:90b:1b0c:b0:1c7:2f63:dc7f with SMTP id nu12-20020a17090b1b0c00b001c72f63dc7fmr6027069pjb.233.1649191845373; Tue, 05 Apr 2022 13:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649191845; cv=none; d=google.com; s=arc-20160816; b=Y7nQxqcxcanO12gDomEhWEYB0QQKfYVa2N0/ErTWSzn05nin7Ik2io+K9KTHeoxBwS rqBoSf22tSPFklsLexDxFPnGzLDUuorNA3AnH2IyYdbkul7J+SWn2ysceiM4aEcSIEpi 8ewtegEGEkOMSUOZ4pAZokU+xe5KZ3aj6grdmC6KF04x/jrm+QyiXYvH1AZ3Whorlj/1 AFK702Fzu2gPIH0BKQFZtO1Jh3fRT7iFgxKv+pnwRXOYWgN1pdhFaeOpWl2/3HWMR0K9 HSYj2vvJUM9IxXwit+nuYMHKtzpnTavJXSagdnab4GKYrSb6rcthpUg5yeehBKyKoS5s PRGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SWmIF7kdZQxOjvhVF27iSPZYouYPyeTWvrXCvBCoo6M=; b=OB0veUu+Cu+a/823g17moZ7y8WUse4ULGxG6PjHYuUoQJshLtcNsIe380HLJI820ap c/EujO8iWdihyOcY5Ru628j8fdE3RL6Ak2KzzFLlUNoMzqDHQDMmmSWAbJ1l1vxWHHbr kr1NQfHjqLEo+A36/SxGFyZaU9eyH0N2IP61tI4Va2SvrY1P4nB4/yP/kHsa6wkM3MA2 717Fa5URgOL9fqrepbI5xI2Rf9I73SFCZAX72OKUwA3YtHgMgfupi72SJ/ObO41d3EMY kdliHEv993r0sH2mTlvUJuKtJRWAX0TFvNUoxfOg3rvl9lPzfmwUGjoR8Xd3yCaWTWhM Xmcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=0J2XyiFI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a3-20020a637043000000b0038500c74446si13569853pgn.677.2022.04.05.13.50.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 13:50:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=0J2XyiFI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7920A1342D2; Tue, 5 Apr 2022 13:42:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231140AbiDEHW4 (ORCPT + 99 others); Tue, 5 Apr 2022 03:22:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbiDEHVc (ORCPT ); Tue, 5 Apr 2022 03:21:32 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4389718B1A for ; Tue, 5 Apr 2022 00:18:42 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id q19so10926346wrc.6 for ; Tue, 05 Apr 2022 00:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SWmIF7kdZQxOjvhVF27iSPZYouYPyeTWvrXCvBCoo6M=; b=0J2XyiFI8hdOaU2qz1ah0ep9G8tAOnRKLZ6ukhI9wkUUo5KnuOQbgSO39MPE+PxSaB 9fcCB22vkp4p2Jdpl7epatdu/IwwsG9xRFG2SwyTCN+cpHriPBOGT/AKUPpuWy7fEuiY FzcMI0o+dtoUMfwOq08y1Kw7kpkXYyUZOrIpMNT1feIrO+Rh7tighQYA7aaD6T7QiiSq 9DY2OOtK0QP/SEvUIQDPuB8zsSZ0Em0pmi8MMmHCPVlZCGQa75UypwxrnnT+r5toac+U FgCrpJLlWeg1dgw8SkcY9FbRtdnJvx/Upq8B+DHwAntkGhm7NtuJppmAqEy2SBCRcBcZ bHOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SWmIF7kdZQxOjvhVF27iSPZYouYPyeTWvrXCvBCoo6M=; b=CvfkPv5sYwIPnRZEW1gwFpH+bWJ9rYRtP3HHk0hfYENiJRZCEaFGbjh2JnGKq7j6nN p03gAyfvChxoHP/1kdf2g4siv90eCg+ZMyRipgJ4SgKi7QB1M0HyMyfcpxKbFaYsnXj1 A02N2nWb3JODiezEPVWeUm/IZg2zX9CUXIPFhv7nUDaR5YZNWY9y4dpCzyodJsQdRpRy 2qMjOJppIcFJVEhKJX4Y9lq2pXZ0AMmHfkkyKuULPejfR+m9gHzedhsfgyvQzfWe0Zn9 7Slx1FgYlOJ3fl1QcoSmLv0MCoGh3SNXiMJdG/ik29DHOyFrPXt+/P1PWrUjEooD9/7N VNDw== X-Gm-Message-State: AOAM532YWmbXSKdh2eviegLMREfXJXpZqp059/NZrH4vJePnEH1QjzEy TdDChqHzwAkFkNKnkL+qDx/4DvDiX3paYGyVGBBqVg== X-Received: by 2002:adf:f88e:0:b0:206:ce5:af99 with SMTP id u14-20020adff88e000000b002060ce5af99mr1455734wrp.313.1649143121363; Tue, 05 Apr 2022 00:18:41 -0700 (PDT) MIME-Version: 1.0 References: <20220329072911.1692766-1-apatel@ventanamicro.com> <20220329072911.1692766-3-apatel@ventanamicro.com> In-Reply-To: <20220329072911.1692766-3-apatel@ventanamicro.com> From: Anup Patel Date: Tue, 5 Apr 2022 12:48:28 +0530 Message-ID: Subject: Re: [PATCH 2/3] KVM: selftests: riscv: Fix alignment of the guest_hang() function To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , KVM General , "open list:KERNEL VIRTUAL MACHINE FOR RISC-V (KVM/riscv)" , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Mar 29, 2022 at 12:59 PM Anup Patel wrote: > > The guest_hang() function is used as the default exception handler > for various KVM selftests applications by setting it's address in > the vstvec CSR. The vstvec CSR requires exception handler base address > to be at least 4-byte aligned so this patch fixes alignment of the > guest_hang() function. > > Fixes: 3e06cdf10520 ("KVM: selftests: Add initial support for RISC-V > 64-bit") > Signed-off-by: Anup Patel I have queued this patch for RC fixes. Thanks, Anup > --- > tools/testing/selftests/kvm/lib/riscv/processor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/kvm/lib/riscv/processor.c b/tools/testing/selftests/kvm/lib/riscv/processor.c > index d377f2603d98..3961487a4870 100644 > --- a/tools/testing/selftests/kvm/lib/riscv/processor.c > +++ b/tools/testing/selftests/kvm/lib/riscv/processor.c > @@ -268,7 +268,7 @@ void vcpu_dump(FILE *stream, struct kvm_vm *vm, uint32_t vcpuid, uint8_t indent) > core.regs.t3, core.regs.t4, core.regs.t5, core.regs.t6); > } > > -static void guest_hang(void) > +static void __aligned(16) guest_hang(void) > { > while (1) > ; > -- > 2.25.1 >