[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v4 2/2] sysctl: report shadow paging capability
- To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- From: Ian Jackson <ian.jackson@xxxxxxxxxx>
- Date: Thu, 12 Sep 2019 11:45:10 +0100
- Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@xxxxxxxxxx; spf=Pass smtp.mailfrom=Ian.Jackson@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, "Tim \(Xen.org\)" <tim@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 12 Sep 2019 10:45:48 +0000
- Ironport-sdr: b7sFqxeBrDXlZ67JTQNSXg3f3aOOcKVUMzERWMfWkQeziNzCjyc2Q8/SV+sf5yAhaoRPxHtFrQ QGTfYA12Cbf1kryEJSHV/gtffPr+G24CelI9a/K3cx7uXhs3L7RQ+NFNhwrOi8nlaLeoBSkpzD 2wKJL9rowVhY3wp81LFrwZrOLRAN+ezkUP59E4FBZhMDJB8UP9oJWXIMIOMj/N0w+C6vGC3U2O iU92jI/acqjoXqt2MgzX+3MVILSwoZLH8doLCSllC0bawtGtnr09pIPFlziTfBqtf3fw5YQFpU 6r8=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Roger Pau Monne writes ("[PATCH v4 2/2] sysctl: report shadow paging
capability"):
> Report whether shadow paging is supported by the hypervisor, since it
> can be disabled at build time.
...
> NB: I'm not sure the added check in
> libxl__domain_create_info_setdefault is that useful, or if it could be
> better placed somewhere else.
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> + if (!info.cap_hap && !info.cap_shadow) {
> + LOG(ERROR, "neither hap nor shadow paging available");
> + return ERROR_INVAL;
> + }
> +
> libxl_defbool_setdefault(&c_info->hap, info.cap_hap);
I would have written
if (cap_hap) setdefault(info->hap, true);
else if (cap_shadow) setdefault(info->hap, false);
else bomb_out();
but the result is equivalent.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|