Skip to contentSkip to conversation

Two upstream fixes from Debian

PATCH In review Ian Jackson 2 participants 4 messages Feb 4, 2020

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 254f556a0b..25b31881c8 100644
@@ -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
index f823abe737..aa1d24b8b9 100644
@@ -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
#2 lore raw

PATCH v3 2/2 INSTALL: Mention kconfig

In reply to 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_EXPERT problem.

---
v2: Fix typos

---
 INSTALL | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
INSTALL +20 -0
index aa08562b8a..72dc4b67dd 100644
@@ -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
Acked-by on v3 2/2
#3 lore raw

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_EXPERT problem.

Just in case it helps:

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel