[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3] Add build-id to XENVER hypercall.
Since v2 (http://lists.xen.org/archives/html/xen-devel/2015-11/msg00630.html) - Made it work under ARM (build_id is part of the hypervisor). - Only made two sub-ops be 'priv' - commandline and build_id. - Applied all review comments. - Autodetect whether ld is able to use --build-id 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_commandline - to return the string '<denied>' for non-priv guests. This is with XSM enabled or disabled. The new sub-op - 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. The patches are also at my git tree: git://xenbits.xen.org/people/konradwilk/xen.git xenver.v3 Config.mk | 11 +++++++ tools/flask/policy/policy/modules/xen/xen.te | 4 +++ 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/arm/Makefile | 6 ++-- xen/arch/arm/xen.lds.S | 6 ++++ xen/arch/x86/Makefile | 16 +++++++--- xen/arch/x86/xen.lds.S | 6 ++++ xen/common/kernel.c | 48 ++++++++++++++++++++++++++-- xen/common/version.c | 47 +++++++++++++++++++++++++++ xen/include/asm-arm/config.h | 2 ++ xen/include/public/version.h | 16 +++++++++- xen/include/xen/version.h | 2 ++ xen/include/xsm/dummy.h | 21 ++++++++++++ xen/include/xsm/xsm.h | 5 +++ xen/xsm/dummy.c | 1 + xen/xsm/flask/hooks.c | 24 ++++++++++++++ xen/xsm/flask/policy/access_vectors | 2 ++ 22 files changed, 254 insertions(+), 11 deletions(-) Konrad Rzeszutek Wilk (3): xsm/xen_version: Add XSM for the xen_version hypercall (v6). XENVER_build_id: Provide ld-embedded build-ids (v8) libxl: info: Display build_id of the hypervisor. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |