From nobody Sun May 19 16:58:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693414670; cv=none; d=zohomail.com; s=zohoarc; b=iPmqgisLC2LXiGsrVThvz0NYeNc2mO9UcL+3nakRVUSA4r+rG6gNh5yt+tCnE+ttiY8PYKO1cuWqTFtL5A6STTB5zBA/d8k79Kpn6bwOfIOPeG6inLOPQi780C2GprMKT2rpEapRMzYEVBw5DTupGfMhmq2s9Tz+ZRZqs336P2g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693414670; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IfGWl5i1i+V0kmRFz/WihmIFA6/gIVVvFug4WIVFmIQ=; b=U3LSO6X2qRcxNXyRjF/lHG5IQfE7u46xk4Z/fx68ANy+VIq/8IB0Fl7gPn+Pe+SqN7Nfvpeb5Om6e2lp5j2rrhAxhx7qq+cNzeqNR4Bt70PZ16wJIi0VNgvogONCvNGIA0Bpj3pmyFaWjNpbcaODjddvdT69EtKsE2qTpbFtP+s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1693414670693498.26883189547914; Wed, 30 Aug 2023 09:57:50 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.593175.926128 (Exim 4.92) (envelope-from ) id 1qbOVK-0003QX-72; Wed, 30 Aug 2023 16:57:18 +0000 Received: by outflank-mailman (output) from mailman id 593175.926128; Wed, 30 Aug 2023 16:57:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qbOVJ-0003Pu-W5; Wed, 30 Aug 2023 16:57:17 +0000 Received: by outflank-mailman (input) for mailman id 593175; Wed, 30 Aug 2023 16:57:16 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qbOVI-00035r-ER for xen-devel@lists.xenproject.org; Wed, 30 Aug 2023 16:57:16 +0000 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [2a00:1450:4864:20::134]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 44d41e3a-4756-11ee-9b0d-b553b5be7939; Wed, 30 Aug 2023 18:57:14 +0200 (CEST) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-500913779f5so67857e87.2 for ; Wed, 30 Aug 2023 09:57:14 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id er7-20020a05651248c700b004fd36c89c3csm2458240lfb.43.2023.08.30.09.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 09:57:13 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 44d41e3a-4756-11ee-9b0d-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693414633; x=1694019433; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IfGWl5i1i+V0kmRFz/WihmIFA6/gIVVvFug4WIVFmIQ=; b=WkcR6kfkjoj+KFy2dJPmD3UipK82DB36g6kwb6+ZgD2ogmMrkMrUaEf1AqACZW1y57 l/Vps/JLvE4SxOZHrGyqgJndfkm3w59vr9Ed7aiI+mT28tXIz4ugFEcoMYoWozEM0EsL JIZNrjnXkKFK7s/Szz4JyNXKC5Ss749360fzeVcg2hKonrEZ4UyiiI+dNtywlRLeuWx0 L4uMTwuFouD0oAlEBsD48M4/axSRZEcYf0cUeUXPpKcKTNXi0E429AtNMebjoInYLam0 H2ZtTFboSCiuB5Cp+w0t4WxuQhVRLwhzHyQxxh5PTb3S/IY8I1OelRAhFA8AdnRvfd2n uTWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693414633; x=1694019433; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IfGWl5i1i+V0kmRFz/WihmIFA6/gIVVvFug4WIVFmIQ=; b=FZ0zTjth0qRpMTYYSUNQ/GYzoyuBOoUj6RgrO0dRaaR3pFgr4AIJ8nU0B4TwfCebdW 8E2LapYgiIH+nlaTp8W3TS+v2VO/Z/OC/wBuDCEG5G5ukffQAUREfbkp1W6pIJrQXSn8 URaqjAoViOjOcAdIi4YB9Z5bbuZ0Hkanwhp+uBEZuXcgS5FpldAIYVD9ijxFb7Gr0VNQ WKuS7GFtYBJVXcsiEIiTY2XZsMprGC63zg1CU4AZPvMAEr1TokV5LEAeQYkDIZNMX+L5 lwRKj90ZPpRZlIRqWPX3Myb43pLLbT+9Z4OWppShF/TrRPdh+AWa1jCm8THF9/FhRLjj gL3A== X-Gm-Message-State: AOJu0YxhRQPGtzB0FKKz6q07jTNmoNAw+e8N8Qp8xaGJ5TTzTb9WzGQc A4QmU9t6gAp7OqdzeFcRjScAOqsFRAw= X-Google-Smtp-Source: AGHT+IEu//FLboMeXYU0xaF3cdZPGiMSN30bWXXC0fyJlHr7uJUxjztq3m9nZL1Tx3lWTPrH3DtM2Q== X-Received: by 2002:a19:7608:0:b0:500:8249:161a with SMTP id c8-20020a197608000000b005008249161amr2023692lff.19.1693414633506; Wed, 30 Aug 2023 09:57:13 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v3 1/2] xen: add asm-generic dir to include path Date: Wed, 30 Aug 2023 19:57:06 +0300 Message-ID: <3c54acf593ce4d9248603079133d930d081bad40.1693414172.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1693414672172100001 Content-Type: text/plain; charset="utf-8" asm-generic dir will contain empty/stubs generic for all architectures. Signed-off-by: Oleksii Kurochko --- Changes in V3: - Rename stubs dir to asm-generic --- Changes in V2: - Nothing changed. --- xen/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/Makefile b/xen/Makefile index f57e5a596c..5482c86080 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -438,6 +438,7 @@ ifdef building_out_of_srctree endif CFLAGS +=3D -I$(srctree)/include CFLAGS +=3D -I$(srctree)/arch/$(SRCARCH)/include +CFLAGS +=3D -I$(srctree)/include/asm-generic =20 # Note that link order matters! ALL_OBJS-y :=3D common/built_in.o --=20 2.41.0 From nobody Sun May 19 16:58:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1693414676; cv=none; d=zohomail.com; s=zohoarc; b=JnUnCPcfgnrHWvZkBo1Q/pUsul6EsJJ4Nh7uTnSbLFtn8rjXkLSPvb3Hd9RNBUTfmPq+huk6o1DvSYOi2gaHUhQUEjix3GzALYqCkiPui4Rzkvc1/MdSgULWlPxD5ow+3kfenqSovtybIiY2fWrXpM4zbNICfbcYQn/vfb8qjd8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693414676; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eJZrTgBzzdxBeCWZcRLvZVazbgGNtSI0NZG/c8XfBMQ=; b=GdWDHJEwzLSBILD0Louw6Ie1z7QH8+sqsLogcVkOKSVshDnoKpODMgHAystgr8WiwV/CXR5NGwmL2XOCS4ND1RbXe6mrA0ajVuQE9vb6pm9zBw5owD4ACxArd7vNbfy7RAB7ID+3wzJJS6CR9VMt478O5gbRE8JIgwPC6pwGiZo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1693414676285982.9899152842665; Wed, 30 Aug 2023 09:57:56 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.593174.926122 (Exim 4.92) (envelope-from ) id 1qbOVJ-0003Mj-QU; Wed, 30 Aug 2023 16:57:17 +0000 Received: by outflank-mailman (output) from mailman id 593174.926122; Wed, 30 Aug 2023 16:57:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qbOVJ-0003Mc-NH; Wed, 30 Aug 2023 16:57:17 +0000 Received: by outflank-mailman (input) for mailman id 593174; Wed, 30 Aug 2023 16:57:16 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qbOVI-00034Q-0w for xen-devel@lists.xenproject.org; Wed, 30 Aug 2023 16:57:16 +0000 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [2a00:1450:4864:20::133]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 45773672-4756-11ee-8783-cb3800f73035; Wed, 30 Aug 2023 18:57:15 +0200 (CEST) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-500d13a8fafso17358e87.1 for ; Wed, 30 Aug 2023 09:57:15 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id er7-20020a05651248c700b004fd36c89c3csm2458240lfb.43.2023.08.30.09.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 09:57:14 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 45773672-4756-11ee-8783-cb3800f73035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693414635; x=1694019435; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eJZrTgBzzdxBeCWZcRLvZVazbgGNtSI0NZG/c8XfBMQ=; b=UOaxEh1lb4AvZy7UwrZayUqlRx13kzE2uHnuQ5zYjckevFmnuYhdC69yUXhGdTyc3O RKm+3iJ5vFS0p9AUNtkiMgHiS+I/YDm6cY1Zp/AEYRaCL+yTDfTQjEPt0X2w/xsbrAeI S91Th39LdfYOJR8jzbXtgZLNCy3eHF7rkzGu1FGJ74xkNowZFbc64bLoVAkvCAS2n7cf INA53RJScGlQXMmQNfHfeRN0X0criuHYC7/0gWQPsrAzPX3HjXot824wUExsc2QWi0/+ ORdOreqObh/vPgIFvmeavRxu5R47zmQfmLkqy6cGm9WBPK/f3bEunXfL4agSNsAJjBQP BeDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693414635; x=1694019435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eJZrTgBzzdxBeCWZcRLvZVazbgGNtSI0NZG/c8XfBMQ=; b=OBM/aiz7UxJ9rM/5dKFu7UW4yi/DNza1X6szovDhMKSSyW2mCPnYE3savfjkLO8/6/ INHl3ma+1H87M3rY3/r0UyRsaQiqPX00LWOttvF9QAVzaKkFWP9OY7ihK3RhS74h3Pjp Ta9zGsBZrjpiF7WXyrcpZ/Cma9s4YcyjDtIJDeN44atQ207Yk0cIuAFcGGRd0zMvUugd uWezsEjN+dgF1bQ9BP7oVH+X+yyd6d2YQQ8aQfhiAlCahcO3zZxJsAuEHin4y56Tmj+Y PkBq5ScbnbPzQVQiPy1D6ZnEc6zu/AusjUpPY54oW9AhozNAqyfWnJUg8ZDPcltanV13 WmiQ== X-Gm-Message-State: AOJu0YyznvLM7XIoHm+nwyE6ISk0y5Jbj95sUe4k8cFd80OD9ohcNJN/ VCYvMyEqXW7l747XNunDEpattwBoi5E= X-Google-Smtp-Source: AGHT+IHOCwoXzO42Oj97tvPkXhDAbErRlPtO5B5CSO1jVrpkHhlaO5DfQUwPs/iTcNB5Rz/mD/jFCQ== X-Received: by 2002:a19:e054:0:b0:500:81fa:46f1 with SMTP id g20-20020a19e054000000b0050081fa46f1mr1863117lfj.67.1693414634464; Wed, 30 Aug 2023 09:57:14 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu Subject: [PATCH v3 2/2] xen: move arm/include/asm/vm_event.h to asm-generic Date: Wed, 30 Aug 2023 19:57:07 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1693414678242100001 Content-Type: text/plain; charset="utf-8" asm/vm_event.h is common for ARM and RISC-V so it will be moved to asm-generic dir. Original asm/vm_event.h from ARM was updated: * use SPDX-License-Identifier. * update comment messages of stubs. * update #ifdef. * change public/domctl.h to public/vm_event.h. Signed-off-by: Oleksii Kurochko Acked-by: Stefano Stabellini --- Changes in V3: - add Acked-by: Stefano Stabellini for "xen: move= arm/include/asm/vm_event.h to asm-generic" - update SPDX tag. - move asm/vm_event.h to asm-generic. --- Changes in V2: - change public/domctl.h to public/vm_event.h. - update commit message of [PATCH v2 2/2] xen: move arm/include/asm/vm_eve= nt.h to stubs --- xen/arch/arm/include/asm/vm_event.h | 66 -------------------------- xen/include/asm-generic/asm/vm_event.h | 55 +++++++++++++++++++++ 2 files changed, 55 insertions(+), 66 deletions(-) delete mode 100644 xen/arch/arm/include/asm/vm_event.h create mode 100644 xen/include/asm-generic/asm/vm_event.h diff --git a/xen/arch/arm/include/asm/vm_event.h b/xen/arch/arm/include/asm= /vm_event.h deleted file mode 100644 index 4d861373b3..0000000000 --- a/xen/arch/arm/include/asm/vm_event.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * vm_event.h: architecture specific vm_event handling routines - * - * Copyright (c) 2015 Tamas K Lengyel (tamas@tklengyel.com) - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License f= or - * more details. - * - * You should have received a copy of the GNU General Public License along= with - * this program; If not, see . - */ - -#ifndef __ASM_ARM_VM_EVENT_H__ -#define __ASM_ARM_VM_EVENT_H__ - -#include -#include - -static inline int vm_event_init_domain(struct domain *d) -{ - /* Nothing to do. */ - return 0; -} - -static inline void vm_event_cleanup_domain(struct domain *d) -{ - memset(&d->monitor, 0, sizeof(d->monitor)); -} - -static inline void vm_event_toggle_singlestep(struct domain *d, struct vcp= u *v, - vm_event_response_t *rsp) -{ - /* Not supported on ARM. */ -} - -static inline -void vm_event_register_write_resume(struct vcpu *v, vm_event_response_t *r= sp) -{ - /* Not supported on ARM. */ -} - -static inline -void vm_event_emulate_check(struct vcpu *v, vm_event_response_t *rsp) -{ - /* Not supported on ARM. */ -} - -static inline -void vm_event_sync_event(struct vcpu *v, bool value) -{ - /* Not supported on ARM. */ -} - -static inline -void vm_event_reset_vmtrace(struct vcpu *v) -{ - /* Not supported on ARM. */ -} - -#endif /* __ASM_ARM_VM_EVENT_H__ */ diff --git a/xen/include/asm-generic/asm/vm_event.h b/xen/include/asm-gener= ic/asm/vm_event.h new file mode 100644 index 0000000000..29ab1b01b4 --- /dev/null +++ b/xen/include/asm-generic/asm/vm_event.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * vm_event.h: stubs for architecture specific vm_event handling routines + * + * Copyright (c) 2015 Tamas K Lengyel (tamas@tklengyel.com) + */ + +#ifndef __ASM_STUB_VM_EVENT_H__ +#define __ASM_STUB_VM_EVENT_H__ + +#include +#include + +static inline int vm_event_init_domain(struct domain *d) +{ + /* Nothing to do. */ + return 0; +} + +static inline void vm_event_cleanup_domain(struct domain *d) +{ + memset(&d->monitor, 0, sizeof(d->monitor)); +} + +static inline void vm_event_toggle_singlestep(struct domain *d, struct vcp= u *v, + vm_event_response_t *rsp) +{ + /* Nothing to do. */ +} + +static inline +void vm_event_register_write_resume(struct vcpu *v, vm_event_response_t *r= sp) +{ + /* Nothing to do. */ +} + +static inline +void vm_event_emulate_check(struct vcpu *v, vm_event_response_t *rsp) +{ + /* Nothing to do. */ +} + +static inline +void vm_event_sync_event(struct vcpu *v, bool value) +{ + /* Nothing to do. */ +} + +static inline +void vm_event_reset_vmtrace(struct vcpu *v) +{ + /* Nothing to do. */ +} + +#endif /* __ASM_STUB_VM_EVENT_H__ */ --=20 2.41.0