From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F07863093D7 for ; Wed, 2 Jul 2025 14:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751467552; cv=none; b=VAUg+dUSZb3Bk2FBo4Ni1AQkBZLs6zIxEs+jDqnexiQgKA9hblJVTLLNlVRA7Psc+CFqCqqcScV3oJbqvenKN++gDNLFyTu3xGih1tUryzFZiBqpTMv9U2JVoSDWmOxzZ+1mZHlfRSSDR7lcO6Q1t9lOH/na9jhHZMeOE62enQA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751467552; c=relaxed/simple; bh=EahlvFfnghXvMghThmnVMSm4P+zVrUpRV5rzWBemzbk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G07UbYGJNohIRqNC+gK3JelmyRQ57Q+qBBmFXCYXENjov6jwkTs7RPndPlrq2qO0LLzx438gGr2ozJnltlJHp7xlHcsPkT1ZwLZTSkSYcXorvPrmR8LkmlCA44X2r5pdk0t/f2Ut+0BQC9+HnsfyZxpI/+iRyM+mAaPOjhw4/II= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=fL+qJteQ; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fL+qJteQ" Date: Wed, 2 Jul 2025 16:45:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1751467547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ul6kWY/d97Gwtz7aZgKCmp9f2JhC+Ou2eTOqrOtf5Hg=; b=fL+qJteQhYZZgvw44lXrLGozXpO7yK77aDsg4ipcdo+YJNgCBDHgebsQJ3Bp0ICWFnXBRz +u4xTgVydJ9WnCo6tVWZJEa6JYGmjCEpcgwa3dGDl38gG9Mmi7EUimn8s5xmPL9Yo2Que6 wFm+J2z5CGDmZ1CWlPEX7WOo0ssPc7U= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Jesse Taube Cc: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , Charlie Jenkins , James Raphael Tiovalen , Sean Christopherson , Cade Richard Subject: Re: [kvm-unit-tests PATCH v2] riscv: lib: sbi_shutdown add pass/fail exit code. Message-ID: <20250702-ff1645894982f3f00f68fc21@orel> References: <20250624192317.278437-1-jesse@rivosinc.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250624192317.278437-1-jesse@rivosinc.com> X-Migadu-Flow: FLOW_OUT On Tue, Jun 24, 2025 at 12:23:17PM -0700, Jesse Taube wrote: > When exiting it may be useful for the sbi implementation to know if > kvm-unit-tests passed or failed. > Add exit code to sbi_shutdown, and use it in exit() to pass > success/failure (0/1) to sbi. > > Signed-off-by: Jesse Taube > --- > lib/riscv/asm/sbi.h | 2 +- > lib/riscv/io.c | 2 +- > lib/riscv/sbi.c | 4 ++-- > 3 files changed, 4 insertions(+), 4 deletions(-) > Merged. But I think a follow-on patch that makes it configurable is still a good idea. Thanks, drew