From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [PATCH v2] Add build-id to XENVER hypercall. Date: Fri, 6 Nov 2015 14:36:14 -0500 Message-ID: <1446838577-7563-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZumoG-0000uR-AN for xen-devel@lists.xenproject.org; Fri, 06 Nov 2015 19:36:28 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: JBeulich@suse.com, mpohlack@amazon.de, andrew.cooper3@citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xenproject.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org Since v1 (http://lists.xen.org/archives/html/xen-devel/2015-10/msg01090.html) - Made it work on EFI - Compiles on ARM - Redid it per comments. Attached are the three patches that will add XENVER_build_id and add the proper bits in libxl/libxc. However they also change the behavior of the existing hypercall for XENVER_[compile_info|changeset|commandline|extraversion] - that is they return the string ''. This is with XSM enabled or disabled. The new sub-ops - XENVER_build_id on the other hand will return -EPERM (XSM or not) for !priv guests. Please take a look and provide your feedback at your leisure. tools/flask/policy/policy/modules/xen/xen.te | 9 +++++ tools/libxc/xc_private.c | 7 ++++ tools/libxc/xc_private.h | 10 ++++++ tools/libxl/libxl.c | 24 +++++++++++++ tools/libxl/libxl.h | 5 +++ tools/libxl/libxl_types.idl | 1 + tools/libxl/xl_cmdimpl.c | 1 + xen/arch/x86/Makefile | 14 +++++--- xen/arch/x86/xen.lds.S | 6 ++++ xen/common/kernel.c | 54 +++++++++++++++++++++++----- xen/common/version.c | 41 +++++++++++++++++++++ xen/include/public/version.h | 15 +++++++- xen/include/xen/version.h | 2 ++ xen/include/xsm/dummy.h | 18 ++++++++++ xen/include/xsm/xsm.h | 6 ++++ xen/xsm/dummy.c | 1 + xen/xsm/flask/hooks.c | 22 ++++++++++++ xen/xsm/flask/policy/access_vectors | 4 +++ 18 files changed, 226 insertions(+), 14 deletions(-) Konrad Rzeszutek Wilk (2): xsm/xen_version: Add XSM for the xen_version hypercall. libxl: info: Display build_id of the hypervisor. Martin Pohlack (1): XENVER_build_id: Provide ld-embedded build-ids