[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 6/6] xen/vm_event: consolidate CONFIG_VM_EVENT
- To: Penny Zheng <Penny.Zheng@xxxxxxx>
- From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- Date: Thu, 15 Jan 2026 18:11:00 -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=1768518777; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=0l3q3A8gUey+LqCIoBCGD6oDpOqHDGxXljILJBuxYyg=; b=nKB0nVg1qcpHmXSrNaGTEX9X400FWCwCKCzzKhN8V76x/29ki/wInPKXb3qw57ngs5H8GXQM0Py+0314V+NZhJOKI5DQpNwe+cFmmRoReVVPLap3jxKCXDfxDbRmI8ItLSI9pVk+FBNTw+zZXLirN5ulgPLBTuvszyP3vOhXlMY=
- Arc-seal: i=1; a=rsa-sha256; t=1768518777; cv=none; d=zohomail.com; s=zohoarc; b=eKRZUhoOJCVNAT5+UKI5k+GS9VstnVhaxnitJpAI+El0e8T4IhozBBcgBa7qXlX6/eamQoTqgc0tXPgUZrF9iPBA5cOoS3EqWnflyhiS3aMrqgVHtPSZeCaqK4I1xOc1sosaryHvk2CYdy1EFsje2S9Cxylv5+dCXpVYq+5Ij94=
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, jason.andryuk@xxxxxxx, ray.huang@xxxxxxx, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>
- Delivery-date: Thu, 15 Jan 2026 23:13:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
File hvm/vm_event.c and x86/vm_event.c are the extend to vm_event handling
routines, and its compilation shall be guarded by CONFIG_VM_EVENT too.
Although CONFIG_VM_EVENT is right now forcibly enabled on x86 via
MEM_ACCESS_ALWAYS_ON, we could disable it through disabling
CONFIG_MGMT_HYPERCALLS later. So we remove MEM_ACCESS_ALWAYS_ON and
make VM_EVENT=y on default only on x86 to retain the same.
The following functions are developed on the basis of vm event framework, or
only invoked by vm_event.c, so they all shall be wrapped with CONFIG_VM_EVENT
(otherwise they will become unreachable and
violate Misra rule 2.1 when VM_EVENT=n):
- hvm_toggle_singlestep
- hvm_fast_singlestep
- hvm_emulate_one_vm_event
- hvmemul_write{,cmpxchg,rep_ins,rep_outs,rep_movs,rep_stos,read_io,write_io}_discard
And Function vm_event_check_ring() needs stub to pass compilation when
VM_EVENT=n.
Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
Acked-by: Tamas K Lengyel < tamas@xxxxxxxxxxxxx>
|