From patchwork Fri Jan 24 13:56:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamas K Lengyel X-Patchwork-Id: 11350333 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D6217184C for ; Fri, 24 Jan 2020 13:57:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B0DDD2071A for ; Fri, 24 Jan 2020 13:57:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0DDD2071A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tklengyel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuzRt-0006OQ-1f; Fri, 24 Jan 2020 13:56:37 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iuzRr-0006OL-9c for xen-devel@lists.xenproject.org; Fri, 24 Jan 2020 13:56:35 +0000 X-Inumbo-ID: 50316452-3eb1-11ea-aecd-bc764e2007e4 Received: from mail-il1-f195.google.com (unknown [209.85.166.195]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 50316452-3eb1-11ea-aecd-bc764e2007e4; Fri, 24 Jan 2020 13:56:26 +0000 (UTC) Received: by mail-il1-f195.google.com with SMTP id l4so1677009ilj.1 for ; Fri, 24 Jan 2020 05:56:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hxGWCYOQPu/c+TP5D2Cr3/H8MhMAqAxzxRilmXDyP+Q=; b=c32gW2URT8olsxZwgofzlGd11ndkl1LdIwmm7ynTdnCtAavLL/4SnvmD7ALm2Po5RQ qPH1FXSBY7zIVJ2K1zrdIbd1rRY3BdVe9R9F/Cq+sGgt/WRXMp0IDEULc7m8umBVhpWz FdktxoF/sRY6bild86h04z8LJDzJH7lr2uv/3pA581DdYUIRQQDg9gDQYnDpgMnU8/iu gnQu+FEM///008bDXdNGzY3eaJ3RfOmqtY8EojNj79QDN6b30RZ5z1DonCbbqRjTGVZs R/k/q33Mzx7qEItlCw2/0EvoiFE/QHhf+8F4SjXIjenzSlEJam5c91Yu37WlLS+NmdyN jtDQ== X-Gm-Message-State: APjAAAU/SOwY5IUVF0VUhItMadNmzNfFwZedT5WGw+00gDi0JtsxZLX9 574Eby1OpUfxG2qUE3TzetoUGf4Q X-Google-Smtp-Source: APXvYqw3xUBix3DzJmnYVrCFuHcWynrvIA29DYyEeyB2wWoFuZ7CgecUQsfw6Ju5SfeoWEGcMCJE5A== X-Received: by 2002:a92:86ce:: with SMTP id l75mr3318836ilh.4.1579874185640; Fri, 24 Jan 2020 05:56:25 -0800 (PST) Received: from l1.lan ([2601:280:4c00:797::24f]) by smtp.gmail.com with ESMTPSA id z21sm1190820ioj.21.2020.01.24.05.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 05:56:24 -0800 (PST) From: Tamas K Lengyel To: xen-devel@lists.xenproject.org Date: Fri, 24 Jan 2020 06:56:21 -0700 Message-Id: <20200124135621.105766-1-tamas@tklengyel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/mem_access: move _ve functions to x86 header X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Petre Pircalabu , Tamas K Lengyel , Wei Liu , Andrew Cooper , Alexandru Isaila , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" These functions don't belong in the common mem_access header as there is no #VE equivalent on ARM. Signed-off-by: Tamas K Lengyel Acked-by: Jan Beulich --- xen/include/asm-x86/mem_access.h | 10 ++++++++++ xen/include/xen/mem_access.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/xen/include/asm-x86/mem_access.h b/xen/include/asm-x86/mem_access.h index 99817a33db..a25e3c62df 100644 --- a/xen/include/asm-x86/mem_access.h +++ b/xen/include/asm-x86/mem_access.h @@ -46,6 +46,16 @@ bool p2m_mem_access_emulate_check(struct vcpu *v, /* Sanity check for mem_access hardware support */ bool p2m_mem_access_sanity_check(const struct domain *d); +int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve, + unsigned int altp2m_idx); + +struct xen_hvm_altp2m_suppress_ve_multi; +int p2m_set_suppress_ve_multi(struct domain *d, + struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve); + +int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve, + unsigned int altp2m_idx); + #endif /*__ASM_X86_MEM_ACCESS_H__ */ /* diff --git a/xen/include/xen/mem_access.h b/xen/include/xen/mem_access.h index 9dfebe6a29..0effa0caad 100644 --- a/xen/include/xen/mem_access.h +++ b/xen/include/xen/mem_access.h @@ -77,16 +77,6 @@ long p2m_set_mem_access_multi(struct domain *d, uint32_t nr, uint32_t start, uint32_t mask, unsigned int altp2m_idx); -int p2m_set_suppress_ve(struct domain *d, gfn_t gfn, bool suppress_ve, - unsigned int altp2m_idx); - -struct xen_hvm_altp2m_suppress_ve_multi; -int p2m_set_suppress_ve_multi(struct domain *d, - struct xen_hvm_altp2m_suppress_ve_multi *suppress_ve); - -int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve, - unsigned int altp2m_idx); - /* * Get access type for a gfn. * If gfn == INVALID_GFN, gets the default access type.