]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
xen: x86: copy back tsc info, not pointer to tsc info in domctl
authorIan Campbell <ian.campbell@citrix.com>
Tue, 26 May 2015 11:14:47 +0000 (12:14 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 26 May 2015 13:21:04 +0000 (14:21 +0100)
commitf057af7aad462aa9dde5b6ec7aff279c3e70d0e9
tree4bfe21995d22848a790e511e63f56eb64a8ca3f5
parent1cfb320b88588bb42e95eb49fba69358802b771e
xen: x86: copy back tsc info, not pointer to tsc info in domctl

In 38b37ed82705 "x86/domctl: cleanup", XEN_DOMCTL_gettscinfo was
changed to use the standard copyback mechanism.

However the output TSC Info is a guerst handle, i.e. a pointer to the
location for the information, copyback just copies the unchanged
pointer back.

Switch back to fetching the details into a local struct and explicitly
copying it back.

This caused test failures in the Cambridge instance of osstest, but
not for some reason in the production instance.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domctl.c