From nobody Sun May 19 21:29:29 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=1693238275; cv=none; d=zohomail.com; s=zohoarc; b=nG0n1xc2rduRdQgkGuCpdSYGZs/q5e1ZsWzYLwbxHE6O23y33WhWhjOXznTijPGJP9OESevp42rgZUZVLIeNWAIxrqew3PhVp6xVqsYzNcs6iGPqgO86gVPkj6XH1QXbG2TvzB8s3Fp+J5Qfgyk4SxB+KxGg3Cg4XswncJaE5h4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693238275; 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=m9LMAk8n2gFjyPZaq/qFruo/ox6AcID4nckvvRxZxoI=; b=df8NezxzXxlBU0FZG2vuSRPora3L2KbJnYJlghLoBZHJ8i4aDYxP00kdeNzkWgkJFp98hJ+74/T72SfEoMMmMLlsdyBkVx8q5xdVZCgsUOaBG4Z7RVjIvznjTPssYFNMcbjLV8WdTTmMgmDcidR+DWHtSqprpP2aWks7ZgIhFtg= 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 1693238275134178.88720720730623; Mon, 28 Aug 2023 08:57:55 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.591665.924120 (Exim 4.92) (envelope-from ) id 1qaec9-0004bP-Ts; Mon, 28 Aug 2023 15:57:17 +0000 Received: by outflank-mailman (output) from mailman id 591665.924120; Mon, 28 Aug 2023 15: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 1qaec9-0004bE-QG; Mon, 28 Aug 2023 15:57:17 +0000 Received: by outflank-mailman (input) for mailman id 591665; Mon, 28 Aug 2023 15: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 1qaec8-00047o-J3 for xen-devel@lists.xenproject.org; Mon, 28 Aug 2023 15: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 8d6dafbf-45bb-11ee-9b0c-b553b5be7939; Mon, 28 Aug 2023 17:57:13 +0200 (CEST) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4ff8cf11b90so5324683e87.1 for ; Mon, 28 Aug 2023 08:57:13 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id t25-20020ac24c19000000b004fe8424c750sm1636027lfq.47.2023.08.28.08.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 08:57:11 -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: 8d6dafbf-45bb-11ee-9b0c-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693238232; x=1693843032; 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=m9LMAk8n2gFjyPZaq/qFruo/ox6AcID4nckvvRxZxoI=; b=Jh1ReukhHDC5iS9VTzYKeDEAwMuhGCm4R1hud7ygxYYWxZffOiuiz/j/sAA5zrFvMS gevZ98lNIMe3DwhXV8NfHaMLLLRskYfCuNOVHPi3MTKN23tb5t5TQwGf+CqTO9+k83hQ 4cpumKKMyhMVTc00olf0tucr8E5T3O3Wx+JtCjL4nq5Eo6E515o6Dn2AZFpXo7zjn6YR XeneTb/k8eBc314wLlGJ68MiRRrK7h83J6br1ZhWMN7LnoYC38+/Aw7F9rVkhMfZIQe3 +3V8/fNQb9iNMYXP+sJO5oaGZpyTkuIi+dENQB2P4cMZAyQQfs8z7coTNpKZ1GzvD/xV bYsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693238232; x=1693843032; 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=m9LMAk8n2gFjyPZaq/qFruo/ox6AcID4nckvvRxZxoI=; b=f+Fgc/ITZGAM/miMQX1NBv1mQx2AJ0+B/bW39OWTvmIQWgGXAsBEHWRXYHbW4NzBA+ zZ82cmdTVunD9esLzVQWWmSVb0UzOKVCf3WQHMw026wHXH5eP4g1Jy2MZiuMnGG/k673 TT1mugNDTSG6F2Oz4JsFo0BAkhcWhNBwNw1RdOnuxCWMkb4KGsWttQaSh/RJsEAgl94/ 5TaI76RfZAwAcIoT6KybwDJ7ZX5DRtvHsQLyEMcNJRxqyGyI6WUhp5H+WQmJeg+GHGKe Pf2bkZHYEOsqVxesk9IlzoGh14vzTr72vOTQYL5L7QQ5tnJ1S+pw+LrM0ps7jyMA8O+Y wwnA== X-Gm-Message-State: AOJu0Yzo5os9o7SyLnGBpMkeHBuIToW2osDXWTuqbuldTHFmFb87oZoL lgJC7HVAOTNEFaV/j9sMrsUF7rN56HM= X-Google-Smtp-Source: AGHT+IGMI1hX5W8fXEH1S5KzO/gocCLo7vwystoaT31+apxLvpvs2iro9SzkjBQkmFcC6ISmICftDQ== X-Received: by 2002:a19:9158:0:b0:500:a2d3:3e65 with SMTP id y24-20020a199158000000b00500a2d33e65mr7601612lfj.23.1693238232043; Mon, 28 Aug 2023 08:57:12 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Oleksii Kurochko , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH v1 1/2] xen: add stubs dir to include path Date: Mon, 28 Aug 2023 18:57:07 +0300 Message-ID: <09fa701d2be02589cc9f63d8334082346b5c1702.1693235841.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: 1693238277405100001 Content-Type: text/plain; charset="utf-8" stubs dir will contain empty/stubs generic for all architectures headers. Signed-off-by: Oleksii Kurochko --- xen/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/Makefile b/xen/Makefile index f57e5a596c..64c3542c84 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/stubs =20 # Note that link order matters! ALL_OBJS-y :=3D common/built_in.o --=20 2.41.0 From nobody Sun May 19 21:29:29 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=1693238272; cv=none; d=zohomail.com; s=zohoarc; b=ijQzWgxSgxd4KRS1htOkcTf+47z9IJmbjkNX3YTMZ2XGeR7NArGn/bufkdwqlqp+s9vb22GwHxe5pUcpR3ue+GmMSVQb310D2ouPf1V18RbddvnYQBWEhQ3RXOxmdxOxJRp9/2KrfpoOykp+YWdLtVZr9IhK2nkeo/Pw/XyBLVw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693238272; 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=c3FaCqqef1K6tiSJmi/bsptj2FfnmcLKjLPutexhzjQ=; b=MQU5ecF68IVGBwBDv769i07l+sXdjC3YCqlRyJmi6J3WifE4bCdmVFS0ZXtfmRLuAQ11f/0Mt8kuEAhD5CFRLtI2m1DQzge2p9/9aHzDsszqdLBWWRraiDPYmlFn/VbG788GUKmjrHdRSsYSuOze5petVbKbthxy5iudWOGwI5M= 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 1693238272020640.0827435630663; Mon, 28 Aug 2023 08:57:52 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.591664.924108 (Exim 4.92) (envelope-from ) id 1qaec7-0004B4-Od; Mon, 28 Aug 2023 15:57:15 +0000 Received: by outflank-mailman (output) from mailman id 591664.924108; Mon, 28 Aug 2023 15:57:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qaec7-0004AP-HK; Mon, 28 Aug 2023 15:57:15 +0000 Received: by outflank-mailman (input) for mailman id 591664; Mon, 28 Aug 2023 15:57:14 +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 1qaec6-00047N-D7 for xen-devel@lists.xenproject.org; Mon, 28 Aug 2023 15:57:14 +0000 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [2a00:1450:4864:20::132]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8df39594-45bb-11ee-8783-cb3800f73035; Mon, 28 Aug 2023 17:57:13 +0200 (CEST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fe61ae020bso5127605e87.2 for ; Mon, 28 Aug 2023 08:57:13 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id t25-20020ac24c19000000b004fe8424c750sm1636027lfq.47.2023.08.28.08.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 08:57:12 -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: 8df39594-45bb-11ee-8783-cb3800f73035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693238233; x=1693843033; 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=c3FaCqqef1K6tiSJmi/bsptj2FfnmcLKjLPutexhzjQ=; b=NG1uJqOs7gckb9FG6vLdhgJ60RYiThCABQ1w+fUQekEQQ7TmLQc4ndYWybOWD2e1Kd Btn8QHz35iNdAVuh9dlRrWr6g/RTxHiL0aRYOAg70c+P30yNdyUyeqebktHglNzmztUq XgCLRXemZStC+KI2R/rcka8R+pQY9/auWtoz9vgV/4K1ZQYuci1hWzEJpsxQhK9lAnUn V3WkX5dwQ7Z/SLncZ3R3EJLgIfNJzOyWqziksmU+W9vuk5lNB9yOb3eyXR/+ltqNBjcA 1hTIL8j0qkNyE7lh/N59sJhef8WB2ZwGtKJo0iy+F6YgrYIWl/01LdHIJoziotAzOjy+ jVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693238233; x=1693843033; 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=c3FaCqqef1K6tiSJmi/bsptj2FfnmcLKjLPutexhzjQ=; b=hRFfA9HjPAdJduBS+bsruIpkhXPJjc5WOl2Ls8UXJD8w8VuOo939qPSiYhgM9ZYoWQ eneARSqH6o5gMWRFPn9vdECncu66t4rUfKifqfyKs/rvm/0VK8f5qYd9UTl1Vah6EGHc ur8p6NxIXvqSsDfx9KmKPw42k/iOC/OwTRH4n4Ynvijti9TjjmzRM+j0xSpCzVa+pGx3 Bjb/cnpgaPZpK+sRVK+QiTzfILquo5D2uTcV/qwGap0kQRLKAm7tyV88ZamA4AtbNN+R GCI+tRaqOxpZNZqBRsBRGS25B1hScmI3X3a3sMLtw9keR9FSpPn3qgGe5ci004+HzO2A 2DpQ== X-Gm-Message-State: AOJu0Yw5z2AGM6+C6BciZMSL+2v4FWmQwemVhLmhTLcqsTb7RCjonc11 1ZbfMjcxJoTgLclPdBPzvf5s2dptx4E= X-Google-Smtp-Source: AGHT+IEgCNqkQbwxbUq2+JJ9ec0uCdTXRxqRu83pTJZOIsx1HiIj5+8iry6SCJuLx8jd09JUriiJOQ== X-Received: by 2002:ac2:4bd4:0:b0:4fb:9f24:bba9 with SMTP id o20-20020ac24bd4000000b004fb9f24bba9mr21609949lfq.5.1693238233044; Mon, 28 Aug 2023 08:57:13 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Tamas K Lengyel , Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu Subject: [PATCH v1 2/2] xen: move arm/include/asm/vm_event.h to stubs Date: Mon, 28 Aug 2023 18:57:08 +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: 1693238274429100003 Content-Type: text/plain; charset="utf-8" asm/vm_event.h is common for ARM and RISC-V so it will be moved to stubs dir. Original asm/vm_event.h from ARM was updated: * use SPDX-License-Identifier. * update comment messages of stubs. * update #ifdef Signed-off-by: Oleksii Kurochko --- xen/arch/arm/include/asm/vm_event.h | 66 ----------------------------- xen/include/stubs/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/stubs/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/stubs/asm/vm_event.h b/xen/include/stubs/asm/vm_ev= ent.h new file mode 100644 index 0000000000..6bda6ce7df --- /dev/null +++ b/xen/include/stubs/asm/vm_event.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * 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