mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
tools/libxc: Drop broken xc_{get,set}_hvm_param() functions
xc_{get,set}_hvm_param() are deprecated because they truncate their value
parameter in 32bit builds of libxc, and are therefore unfit for use.
As there is only a single remaining user, switch that user over to
xc_hvm_param_get() and drop these functions completely.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
c1abc2f7bc
commit
fa4583333d
3 files changed
+4
-24
No files matched your search
@@ -1660,10 +1660,6 @@ void xc_clear_last_error(xc_interface *xch);
|
||||
int xc_hvm_param_set(xc_interface *handle, domid_t dom, uint32_t param, uint64_t value);
|
||||
int xc_hvm_param_get(xc_interface *handle, domid_t dom, uint32_t param, uint64_t *value);
|
||||
|
||||
/* Deprecated: use xc_hvm_param_set/get() instead. */
|
||||
int xc_set_hvm_param(xc_interface *handle, domid_t dom, int param, unsigned long value);
|
||||
int xc_get_hvm_param(xc_interface *handle, domid_t dom, int param, unsigned long *value);
|
||||
|
||||
/* HVM guest pass-through */
|
||||
int xc_assign_device(xc_interface *xch,
|
||||
uint32_t domid,
|
||||
|
||||
@@ -1455,23 +1455,6 @@ int xc_hvm_param_get(xc_interface *handle, domid_t dom, uint32_t param, uint64_t
|
||||
return rc;
|
||||
}
|
||||
|
||||
int xc_set_hvm_param(xc_interface *handle, domid_t dom, int param, unsigned long value)
|
||||
{
|
||||
return xc_hvm_param_set(handle, dom, param, value);
|
||||
}
|
||||
|
||||
int xc_get_hvm_param(xc_interface *handle, domid_t dom, int param, unsigned long *value)
|
||||
{
|
||||
uint64_t v;
|
||||
int ret;
|
||||
|
||||
ret = xc_hvm_param_get(handle, dom, param, &v);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
*value = v;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int xc_domain_setdebugging(xc_interface *xch,
|
||||
uint32_t domid,
|
||||
unsigned int enable)
|
||||
|
||||
@@ -280,7 +280,8 @@ static struct xenpaging *xenpaging_init(int argc, char *argv[])
|
||||
xentoollog_logger *dbg = NULL;
|
||||
char *p;
|
||||
int rc;
|
||||
unsigned long ring_pfn, mmap_pfn;
|
||||
uint64_t ring_pfn;
|
||||
unsigned long mmap_pfn;
|
||||
|
||||
/* Allocate memory */
|
||||
paging = calloc(1, sizeof(struct xenpaging));
|
||||
@@ -338,8 +339,8 @@ static struct xenpaging *xenpaging_init(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Map the ring page */
|
||||
xc_get_hvm_param(xch, paging->vm_event.domain_id,
|
||||
HVM_PARAM_PAGING_RING_PFN, &ring_pfn);
|
||||
xc_hvm_param_get(xch, paging->vm_event.domain_id,
|
||||
HVM_PARAM_PAGING_RING_PFN, &ring_pfn);
|
||||
mmap_pfn = ring_pfn;
|
||||
paging->vm_event.ring_page =
|
||||
xc_map_foreign_pages(xch, paging->vm_event.domain_id,
|
||||
|
||||