diff --git a/src/xen/xen_hypervisor.c b/src/xen/xen_hypervisor.c index ead8ee9b391eab40be02c360eddb029cbd2bb6fe..229ef3d4d519ac0e7ef8414b8b24aee10ac67597 100644 --- a/src/xen/xen_hypervisor.c +++ b/src/xen/xen_hypervisor.c @@ -2321,6 +2321,16 @@ xenHypervisorBuildCapabilities(virConnectPtr conn, hv_minor > 0 ? 0 : 1)) == NULL) goto no_memory; + + /* Xen 3.3.x and beyond supports enabling/disabling + * hardware assisted paging. Default is off. + */ + if ((hv_major == 3 && hv_minor >= 3) || (hv_major > 3)) + if (virCapabilitiesAddGuestFeature(guest, + "hap", + 0, + 1) == NULL) + goto no_memory; } }