mirror of https://github.com/xemu-project/xemu.git
xen-hvm: When using xc_domain_add_to_physmap also include errno when reporting
.errors - as it will most likely have the proper error value. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
5cec8aa38c
commit
e763addd19
|
@ -348,7 +348,7 @@ go_physmap:
|
|||
rc = xc_domain_add_to_physmap(xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);
|
||||
if (rc) {
|
||||
DPRINTF("add_to_physmap MFN %"PRI_xen_pfn" to PFN %"
|
||||
PRI_xen_pfn" failed: %d\n", idx, gpfn, rc);
|
||||
PRI_xen_pfn" failed: %d (errno: %d)\n", idx, gpfn, rc, errno);
|
||||
return -rc;
|
||||
}
|
||||
}
|
||||
|
@ -425,7 +425,7 @@ static int xen_remove_from_physmap(XenIOState *state,
|
|||
rc = xc_domain_add_to_physmap(xen_xc, xen_domid, XENMAPSPACE_gmfn, idx, gpfn);
|
||||
if (rc) {
|
||||
fprintf(stderr, "add_to_physmap MFN %"PRI_xen_pfn" to PFN %"
|
||||
PRI_xen_pfn" failed: %d\n", idx, gpfn, rc);
|
||||
PRI_xen_pfn" failed: %d (errno: %d)\n", idx, gpfn, rc, errno);
|
||||
return -rc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue