From nobody Thu May 2 04:21:35 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1579874251; cv=none; d=zohomail.com; s=zohoarc; b=k1Wc9+FZDp+QrorQZV/rAJvzxVpfSeQAKn8W2PsopdU0EhrLABq8j77V/iLN42UKRfUKXtpNP2GFBcomXw9NRTSngrFaxrbUzs9Xnh1av+3Qm8UEuroAATIuTHJ3VHv2IPpHpj87bQqR5KcarrHIgoQk0xop2c5zYRFs3Xv52s0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579874251; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=j30n+Ap7TdpW5wblVtXUJzlDjMGcbS65nU25Bnqj1Es=; b=RYTsIItfql8E5F7UBSwV+ROQHtFhudxw/RO27k4+eDqBzEtXnElwxs1K3bEyzIKTpubmzlSMVeMSsM7As2rMbesbk7E7UgcIBatqVd/kxvAWAdwvwKS7x1bagMUe7Dz0zT0+CKVN9BPcPf+aIha10R3PPAiUPG3FaD5RJGWpXOQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1579874251736376.6165061282675; Fri, 24 Jan 2020 05:57:31 -0800 (PST) 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 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) 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) X-Inumbo-ID: 50316452-3eb1-11ea-aecd-bc764e2007e4 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) 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=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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_acc= ess.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); =20 +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 *sup= press_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__ */ =20 /* 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); =20 -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 *sup= press_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 =3D=3D INVALID_GFN, gets the default access type. --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel