[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v1] xen: mem_access: conditionally compile vm_event.c & monitor.c
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- Date: Mon, 6 Jan 2025 09:05:48 -0500
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=tklengyel.com; spf=pass smtp.mailfrom=tamas@xxxxxxxxxxxxx; dmarc=pass header.from=<tamas@xxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1736172387; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=iOAJ9XTmoSmFUoSI3CJNLNTF1VjywRN9i2HM85jxsQ0=; b=kZJZVHkhAa/pmld1O/fPEMvTuhXGEdyA6JXhoxC7sFiS1TBdoxO3DqO9XzTAPI7us3F0NZIv53eZz4hHA+A4O+dIcLSIKMXxzFb7pf2ZXxr9Vik2cmBDQABfTNbziOB0jNCQxX67nQjG9UdR1Pgp4wFCmTibqxrAzyN1GItrSxM=
- Arc-seal: i=1; a=rsa-sha256; t=1736172387; cv=none; d=zohomail.com; s=zohoarc; b=YPkFt/7PDx3cqA4v6bHgb/pfnBK29wGdQ8d2Jf+8dGpRZbW4HlT6Eo0f6Sl/dvasQ3pRp3xZvuhzG+Z6M0XtDQvGo8sFqjI9nE8JoKmmwHfvncxINNYEmSy+z9nd/NDgwT3a+fQKzcNyaYVWt6hrVQHPKZXvPl+VDjvummWs6bw=
- Cc: Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 06 Jan 2025 14:06:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, Jan 6, 2025 at 5:16 AM Jan Beulich <jbeulich@xxxxxxxx> wrote:
>
> On 30.12.2024 07:30, Sergiy Kibrik wrote:
> > From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> >
> > Extend coverage of CONFIG_MEM_ACCESS option and make the build of VM events
> > and monitoring support optional.
>
> Yet doesn't this end up in things becoming misleading? Don't we rather need a
> 2nd Kconfig option, with a dependency between the two? Or alternatively a
> rename of the existing option (to describe the higher-level feature rather
> than the lower level one)? Tamas, I'm particularly interested in knowing your
> view here as well.
Thanks Jan, I was thinking the same thing. The dependency of these
subsystems is mem_access -> monitor -> vm_event. If the goal here is
to disable all three levels the ideal way would be to have separate
kconfig options for each level. It may be a bit too fine-grained
though on ARM since there are only two types of events for monitor
(SMC & mem_access) and only the monitor uses the vm_event channel (no
mem-sharing/paging on ARM). So if doing separate kconfig for each
individual feature is an overkill I would suggest using
CONFIG_VM_EVENT that disables all three levels, including both
mem_access & smc monitor hooks.
Tamas
|