[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression: [PATCH v10 10/12] tools/libxl: use libxenhypfs for setting xen runtime parameters


  • To: Juergen Gross <jgross@xxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 10 Sep 2020 21:09:34 +0100
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 10 Sep 2020 20:10:06 +0000
  • Ironport-sdr: kiACMK6Oq5qccr5JKwLDLmZ6BCmCtbnBEYgRYIKH+FQFKwiUHiIazLoGW4w3+hfn3DjNqaSXdo E1ER9ZjMycthqyoK5EA2x+wLb8YsNzBZcrLlb+VIlwCa2YRPSmZ0SuwJG832ciLjFKe23rn4Rn BU/2onblswMO1Oy9WF87/sRo+9H3TCRbisr4I3xKa+ajWj/Gwjh9Qw4JXBeKmWx9WEZi7a1C+Y JGZcFUaLA+saxaZLC49B1+n2RRAvC0sEzeh6MpBrIHH7zelpkch2PQ1lgQLMT0hzip0VMGDy2Y ibE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19/05/2020 08:21, Juergen Gross wrote:
> Instead of xc_set_parameters() use xenhypfs_write() for setting
> parameters of the hypervisor.
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Something here isn't right.  XenServer's testing for XSA-304 has shown
the following bizarre behaviour.

# xl set-parameters ept=
libxl: error: libxl.c:701:libxl_set_parameters: setting parameters:
Invalid argument
cannot set parameters: ept=
# xl set-parameters ept=exec-sp
# xl set-parameters ept=no-exec-sp
libxl: error: libxl.c:701:libxl_set_parameters: setting parameters: No
space left on device
cannot set parameters: ept=no-exec-sp

Instrumentation shows that the first two examples here enter
parse_ept_param_runtime() with the provided string, while the third
example doesn't.

Given the -ENOSPC, I'm guessing there is some overly small internal
buffer somewhere in the hyperfs infrastructure ?

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.