Two upstream fixes from Debian
v3 cover Two upstream fixes from Debian
These were posted before in October 2018 but never made it upstream for some reason. They seem to have been sufficiently reviewed, and I intend to commit them soon. I'm reposting now, with no changes, in case anyone wants to object.
Ian Jackson (1):
INSTALL: Mention kconfig
Stefan Bader (1):
tools/xenstore: Re-introduce (fake) xs_restrict call to preserve ABI
INSTALL | 20 ++++++++++++++++++++ tools/xenstore/include/xenstore.h | 5 +++++ tools/xenstore/xs.c | 6 ++++++ 3 files changed, 31 insertions(+)
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v3 1/2 tools/xenstore: Re-introduce (fake) xs_restrict call to preserve ABI
From: Stefan Bader <[email protected]>
libxenstore3.0 in Xen 4.8 had this function. We don't really want to bump the ABI version (soname) just for this, since we don't think there are actual callers anywhere. But tools complain about the symbol going away.
So, provide a function xs_restrict which conforms to the original semantics, although it always fails.
Gbp-Pq: Topic xenstore
Gbp-Pq: Name tools-fake-xs-restrict.patch
---
v3: Fixed commit author
v2: New in this version of the series
--- tools/xenstore/include/xenstore.h | 5 +++++ tools/xenstore/xs.c | 6 ++++++ 2 files changed, 11 insertions(+)
tools/xenstore/include/xenstore.h +5 -0
@@ -134,6 +134,11 @@ bool xs_mkdir(struct xs_handle *h, xs_transaction_t t,bool xs_rm (struct xs_handle *h,xs_transaction_t t,const char *path); +/* Fake function which will always return false (required to let +* libxenstore remain at 3.0 version. +*/ +bool xs_restrict (struct xs_handle *h,unsigned domid); +/* Get permissions of node (first element is owner, first perms is "other"). * Returns malloced array, or NULL: call free() after use. */
tools/xenstore/xs.c +6 -0
@@ -797,6 +797,12 @@ unwind:return false; } +/* Always return false a functionality has been removed in Xen 4.9 */ +bool xs_restrict (struct xs_handle *h,unsigned domid) +{ +return false; +} +/* Watch a node for changes (poll on fd to detect, or call read_watch()). * When the node (or any child) changes, fd will become readable. * Token is returned when watch is read, to allow matching.
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v3 2/2 INSTALL: Mention kconfig
In reply to Ian JacksonFrom: Ian Jackson <[email protected]>
Firstly, add a reference to the documentation for the kconfig system.
Secondly, warn the user about the XEN_CONFIG_EXPERT problem.
---
v2: Fix typos
--- INSTALL | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
INSTALL +20 -0
@@ -19,6 +19,26 @@ following compile process. Once configure is done, make(1) has to be called. Also make(1) recognizes certain arguments. The following sections will give an overview. +Xen Hypervisor +============== + +Xen itself is configured via a `kconfig' system borrowed from Linux. +See docs/misc/kconfig.txt. + +Note that unlike with Linux, and contrary to that document, you cannot +look at Kconfig files, or the default or generated config files etc., +to find available configuration options. This is because it is only +supported (and security supported) by the Xen Project, to change a +small subset of the options. Attempts to change other options will be +silently overridden. The only way to find which configuration options +are available is to run `make menuconfig' or the like. + +You can counter-override this behaviour by setting XEN_CONFIG_EXPERT=y +in your environment. However, doing this is not supported and the +resulting configurations do not receive security support. If you set +this variable there is nothing stopping you setting dangerously +experimental combinations of features - not even any warnings. + Options recognized by configure ===============================
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v3 2/2] INSTALL: Mention kconfig
Quoted 8 lines · Ian Jackson
From: Ian Jackson <[email protected]>
Firstly, add a reference to the documentation for the kconfig system.
Secondly, warn the user about the
XEN_CONFIG_EXPERTproblem.Signed-off-by Ian Jackson <[email protected]>Reviewed-by Doug Goldstein <[email protected]>
Just in case it helps:
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel