mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/xen: Remove deadcode
xen_be_copy_grant_refs is unused since 2019's19f87870ba
("xen: remove the legacy 'xen_disk' backend") xen_config_dev_console is unused since 2018's6d7c06c213
("Remove broken Xen PV domain builder") Remove them. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Acked-by: Anthony PERARD <anthony.perard@vates.tech> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
This commit is contained in:
parent
423be09ab9
commit
abdfd6549d
3 changed files with 0 additions and 31 deletions
|
@ -147,24 +147,6 @@ void xen_be_unmap_grant_refs(struct XenLegacyDevice *xendev, void *ptr,
|
|||
}
|
||||
}
|
||||
|
||||
int xen_be_copy_grant_refs(struct XenLegacyDevice *xendev,
|
||||
bool to_domain,
|
||||
XenGrantCopySegment segs[],
|
||||
unsigned int nr_segs)
|
||||
{
|
||||
int rc;
|
||||
|
||||
assert(xendev->ops->flags & DEVOPS_FLAG_NEED_GNTDEV);
|
||||
|
||||
rc = qemu_xen_gnttab_grant_copy(xendev->gnttabdev, to_domain, xen_domid,
|
||||
segs, nr_segs, NULL);
|
||||
if (rc) {
|
||||
xen_pv_printf(xendev, 0, "xengnttab_grant_copy failed: %s\n",
|
||||
strerror(-rc));
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* get xen backend device, allocate a new one if it doesn't exist.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue