From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3412BC7EE2A for ; Wed, 17 May 2023 18:38:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjEQSiY (ORCPT ); Wed, 17 May 2023 14:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjEQSiX (ORCPT ); Wed, 17 May 2023 14:38:23 -0400 Received: from out-19.mta1.migadu.com (out-19.mta1.migadu.com [IPv6:2001:41d0:203:375::13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C351A170B for ; Wed, 17 May 2023 11:38:21 -0700 (PDT) Date: Wed, 17 May 2023 18:38:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684348700; 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=VADbWaPZL/zhG2c6e1p0Yiznf8RS4MLXiOGMohKfvKA=; b=GWmFapC3pwKy3Ow+nUV3D64O7mk+VdhbZc858Oi8uuSE0uzaH2+gjVww3a7aY5Mw3iJubu wB5AO/sqcmBiX/UcCRAZhKal9bEET8CI6G99QT6xQcLruQBHF2xwU2XmmDY9tekozCrLMt TDt3uQjvT1SpM8xNmJI7kMt3xOQyqHo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Salil Mehta Cc: Marc Zyngier , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , Paolo Bonzini , James Morse , Suzuki K Poulose , yuzenghui , Sean Christopherson Subject: Re: [PATCH v3 08/13] KVM: arm64: Add support for KVM_EXIT_HYPERCALL Message-ID: References: <20230404154050.2270077-1-oliver.upton@linux.dev> <20230404154050.2270077-9-oliver.upton@linux.dev> <87o7o26aty.wl-maz@kernel.org> <86pm8iv8tj.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Hi Salil, On Wed, May 17, 2023 at 06:00:18PM +0000, Salil Mehta wrote: [...] > > > Should we expose the ESR, or at least ESR_EL2.IL as an additional > > > flag? > > > I think we would need "Immediate value" of the ESR_EL2 register in the > user-space/VMM to be able to construct the syndrome value. I cannot see > where it is being sent? The immediate value is not exposed to userspace, although by definition the immediate value must be zero. The SMCCC spec requires all compliant calls to use an immediate of zero (DEN0028E 2.9). Is there a legitimate use case for hypercalls with a nonzero immediate? They would no longer be considered SMCCC calls at that point, so they wouldn't work with the new UAPI. -- Thanks, Oliver