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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BFB8C636D6 for ; Fri, 17 Feb 2023 18:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pJvGSD9gXuZ4JI0K+/VWEtr8g1pSBesArh5nYsoO2uQ=; b=3mMvO1A2eXqxXZ kw7Fd3tks7xAi32x//k+cC1WblU9cmMj6qVl3kbRCJOeeQOqSb3a94xPOuF4tlu65/vZYL9GhNvs8 sWs4gdarKKVaUNQdfLm99+8kj92UCYQLvifkH1QVuVTPRwoEirt7MGt+S7tFh2qNLt4H7THT3dAk3 XHyLhlm8J6Go7i6EjFNOAI9LG5FgkmO1fRS/zEDr0z4oHlfxRm92RMArQIy04b4ixG3cxIfFLbqmh 12aagp/9XJJgs8jrfVCRoxBj7aH4R6HUdTbPNXLaJxPOBdLfspR0P6s/KKgju459Ij0S7K6z/9vRN CEJGJ5WERuCtvttZLsiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT5aZ-00FOmJ-L1; Fri, 17 Feb 2023 18:36:07 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pT5aW-00FOld-7i for linux-arm-kernel@lists.infradead.org; Fri, 17 Feb 2023 18:36:05 +0000 Date: Fri, 17 Feb 2023 18:35:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1676658957; 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=6qPUIlrAqdWw119xSuvPcIRUnxHbEoSXWSdwW7asdJY=; b=Rc03kNSpdg1lE63r+qqNHFhINxu6bF2u6pnsnCnfhniG2DDkj2jE5ryJK6w08ent3I+nY0 S+lTE0VzuE1pkutIFKidfTQi6zrLVysP76lpSphN/qsn05H3ZChaFqoF4IAU/B4fs4EGmd +x4X0RLUxWnnKKSfrfSEInVpibhM7lw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: James Morse , Suzuki K Poulose , kvmarm@lists.linux.dev, Akihiko Odaki , Zenghui Yu , Raghavendra Rao Ananta , linux-arm-kernel@lists.infradead.org, Salil Mehta Subject: Re: [RFC PATCH v2 6/6] KVM: arm64: Indroduce support for userspace SMCCC filtering Message-ID: References: <20230211013759.3556016-1-oliver.upton@linux.dev> <20230211013759.3556016-7-oliver.upton@linux.dev> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230211013759.3556016-7-oliver.upton@linux.dev> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230217_103604_437840_FD2DC194 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Feb 11, 2023 at 01:37:59AM +0000, Oliver Upton wrote: [...] > + struct kvm_smccc_filter_range { > + __u32 base; > + __u32 nr_functions; > + __u8 action; > + __u8 pad[7]; > + }; > + > + struct kvm_smccc_filter { > + __u32 nr_entries; > + __u32 pad; > + > + struct kvm_smccc_filter_range entries[]; > + }; After dealing with this when writing the selftest, I feel like this is a bit over complicated for both userspace and kernel. Next revision will take a similar approach to the PMU event filter, allowing userspace to insert new ranges into the filter with successive calls to the interface. -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel