From patchwork Tue Aug 29 14:34:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13369089 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 50FECC6FA8F for ; Tue, 29 Aug 2023 14:35:12 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.592334.925027 (Exim 4.92) (envelope-from ) id 1qaznx-0000rM-O0; Tue, 29 Aug 2023 14:34:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 592334.925027; Tue, 29 Aug 2023 14:34:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qaznx-0000rF-KY; Tue, 29 Aug 2023 14:34:53 +0000 Received: by outflank-mailman (input) for mailman id 592334; Tue, 29 Aug 2023 14:34:52 +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 1qaznw-0000r3-8H for xen-devel@lists.xenproject.org; Tue, 29 Aug 2023 14:34:52 +0000 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [2a00:1450:4864:20::131]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 364adf1a-4679-11ee-8783-cb3800f73035; Tue, 29 Aug 2023 16:34:51 +0200 (CEST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4ffae5bdc9aso7114398e87.1 for ; Tue, 29 Aug 2023 07:34:51 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id 21-20020ac24835000000b00500a2091e30sm1963770lft.115.2023.08.29.07.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 07:34:50 -0700 (PDT) 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: 364adf1a-4679-11ee-8783-cb3800f73035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693319690; x=1693924490; 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=TUlNTS1bmBEqtM4LMhzwtXR0cEz+6j/3Bg53dCx8Qu4=; b=qmpojKLEkKekj6BZ0GGpE1SRfZYp5/a62cWqt1IbG/6afcZxHbWg6ZV3gx8hSpZ2lq ypesuoy1VQuvzUTzHpPthQnpkUJBcAXhCjHp9CSXGMDHa8mMLimQpKr4WsA1YgLkHcnb vg0WF7c2liVo/yE+9bvl4ykfc7u+VqAGyV95xu6X0Nj0dw418rs71MP+nbqO7eyimC1t +yRIcBdFbiyz4aqj1t+9O6PwsfGJkD3BDgpNUnrAqz5cSEa06TzLE/h9tSXeiCGLF0IV 5vHM8mZbUFh8YC6rwE1lpfFNrDSXespJPvOVBTy8V6S4HOyMwXgcW22sOa9QUK3halGp K/lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693319690; x=1693924490; 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=TUlNTS1bmBEqtM4LMhzwtXR0cEz+6j/3Bg53dCx8Qu4=; b=JRldaiYFydpyOlQ8MZeOU3aRsN9hYlRCtTt3XZw/E8f2ljv3m7XOgNMeg+KRg7XF7R OFp0RCye5xs9XP8kQNzpPDei6twPYunwYgNS7MkN479vq8sej3ZszU0HYvKEBIZKbbgl eGRagQejyfMLtuaSjdMnVlbG9IyZ8vG4q7CB9xhW8X2i9NVpX8KmJPkhaRzy46JG+57U KaRDySPCRqDxyV44f+kQ7xOSgWPMPiK66D07PpFuC9W0lKVfQG9SOebV6zPKrTP+GbbD B6rI4q/nAQSegFEb2uUcCfhd+VTj3VObJkKa55F4k/mKtkoFTCQ/HnZB9s5gtyITjkKz +FTQ== X-Gm-Message-State: AOJu0YxweIJ2ViOiUeM5aULxFdvjHx1U0+sN9qXm4OThFQJKefzuoKCe RQBZa7EiVo6RczTZpic26PeNeMtrSVU= X-Google-Smtp-Source: AGHT+IGHyPGbLk7gXCfuCP0D67FNj04ATNHeW9fe0ChkPFYkrGC2+hOR2Ez9eRetrgarr7bKeaSF3A== X-Received: by 2002:a05:6512:12c4:b0:4fb:9712:a717 with SMTP id p4-20020a05651212c400b004fb9712a717mr22639647lfg.13.1693319690287; Tue, 29 Aug 2023 07:34:50 -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 v2 1/2] xen: add stubs dir to include path Date: Tue, 29 Aug 2023 17:34:38 +0300 Message-ID: <09fa701d2be02589cc9f63d8334082346b5c1702.1693319118.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 stubs dir will contain empty/stubs generic for all architectures headers. Signed-off-by: Oleksii Kurochko --- Changes in V2: - Nothing changed. --- 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 += -I$(srctree)/include CFLAGS += -I$(srctree)/arch/$(SRCARCH)/include +CFLAGS += -I$(srctree)/include/stubs # Note that link order matters! ALL_OBJS-y := common/built_in.o From patchwork Tue Aug 29 14:34:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13369090 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 ECE45C83F14 for ; Tue, 29 Aug 2023 14:35:14 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.592336.925043 (Exim 4.92) (envelope-from ) id 1qaznz-00019n-8O; Tue, 29 Aug 2023 14:34:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 592336.925043; Tue, 29 Aug 2023 14:34:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qaznz-000193-32; Tue, 29 Aug 2023 14:34:55 +0000 Received: by outflank-mailman (input) for mailman id 592336; Tue, 29 Aug 2023 14:34:53 +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 1qaznx-0000r8-MF for xen-devel@lists.xenproject.org; Tue, 29 Aug 2023 14:34:53 +0000 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [2a00:1450:4864:20::129]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 3640b907-4679-11ee-9b0d-b553b5be7939; Tue, 29 Aug 2023 16:34:51 +0200 (CEST) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4ff9b389677so6945823e87.3 for ; Tue, 29 Aug 2023 07:34:52 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id 21-20020ac24835000000b00500a2091e30sm1963770lft.115.2023.08.29.07.34.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 07:34:50 -0700 (PDT) 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: 3640b907-4679-11ee-9b0d-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693319691; x=1693924491; 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=y8kgryzR8q+ikO/cKWzA/ywCNibZGw3rXJamJP+9Z3Q=; b=Hn8s+UGm0Cl1seaV/cUWJoz/LGRRl7hyJ9fCbu+2E2Fy5QxolVKl0GP7tuwtj18g8S kjC7WvdMIvsZ+NRTmB47VtfJigSTa4fZxam3I+jkUOqNDYkob9SeCd51q4rRAnga7Gpu AYs1AETuk2TZJ1CRRMT4wexXZS+NQnv1mPF3O48Y2rAn6hI3V+mrAiEGwhEsvv2wQghQ 7XSHXEhPcPzR/vhuXkuORdMtZp6dOKLH4wQ1tQFLh88ma/0nuciVFKwQnLOSv+tkwO+v 0RsBN0hWFIioDw9NwHAfdAc7NoxGbqMgLBkwzuDoDs73/WhV2g/U8NtpV6H7z6I4Q586 wCAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693319691; x=1693924491; 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=y8kgryzR8q+ikO/cKWzA/ywCNibZGw3rXJamJP+9Z3Q=; b=gk+MX2CDfl5gzxIfhrsi+pglyejIBSrRdwaCVR/MIpDXY6lKPCXJxfax189cr3th3J Y6DJOFHhgddREituawyGc83fdGBM+kPuYhyaJF9Lq4yBfGFrYl3SbRFX4PNeSdDFF15y xLDPneI9dp3ukTwWga23HuYW62VTBKy4y3Qn3oVEKjzFQpz7f3PNfzZngwPQAJLXOZzb 4ObnUfBuw1HpGyi6CJdC9UU1SPUzgMLpXLaQr8Wm2WspJj1xaZpBoSQnE4WA2Nf9EEK0 jO7QbHNKOwgyxTneMSvExctBfl/ROH2TVctYx+g7PBkBpUdrXEGH9u7jcBhLs7n/+CjN fiSw== X-Gm-Message-State: AOJu0YyY6hr/unjLUsvpVEm6LRWYsunaH5D3kocVMjnLnTba5HPsbLht i/H4LTrkWOMXztVTDXS5QlpacqW36MI= X-Google-Smtp-Source: AGHT+IHSkdBG+DIsjUsSawlIt4FtSHo0xjbp3x2B71RvAgDI/tD4IRsz3o/q7d4KSeVX8ZyV+n30WQ== X-Received: by 2002:a05:6512:3d8a:b0:500:c709:5845 with SMTP id k10-20020a0565123d8a00b00500c7095845mr775025lfv.4.1693319691222; Tue, 29 Aug 2023 07:34:51 -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 v2 2/2] xen: move arm/include/asm/vm_event.h to stubs Date: Tue, 29 Aug 2023 17:34:39 +0300 Message-ID: <31fb5b635fc5a02fd7103ecd64d2b66443c6e038.1693319118.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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. * change public/domctl.h to public/vm_event.h. Signed-off-by: Oleksii Kurochko Acked-by: Stefano Stabellini --- 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_event.h to stubs --- 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 for - * 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 vcpu *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 *rsp) -{ - /* 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_event.h new file mode 100644 index 0000000000..cc89ffe5fb --- /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 vcpu *v, + vm_event_response_t *rsp) +{ + /* Nothing to do. */ +} + +static inline +void vm_event_register_write_resume(struct vcpu *v, vm_event_response_t *rsp) +{ + /* 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__ */