[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] tools/libxc: Fix ARM build broken by XEN_DOMCTL_getvcpuextstate commit



commit 15e90cd01f68ff8b23b426e7f91155b81d73db13
Author:     Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
AuthorDate: Wed Mar 15 11:20:30 2017 +0200
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Wed Mar 15 10:01:49 2017 +0000

    tools/libxc: Fix ARM build broken by XEN_DOMCTL_getvcpuextstate commit
    
    The previous "tools/libxc: Exposed XEN_DOMCTL_getvcpuextstate" broke
    the ARM build (the hypercall does not have a corresponding DOMCTL
    ARM struct). This patch fixes the build by returning -ENODEV for
    ARM from xc_vcpu_get_extstate().
    
    Signed-off-by: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/libxc/xc_domain.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index 71e5d93..cb4f76c 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -560,7 +560,8 @@ int xc_vcpu_get_extstate(xc_interface *xch,
                          uint32_t vcpu,
                          xc_vcpu_extstate_t *extstate)
 {
-    int rc;
+    int rc = -ENODEV;
+#if defined (__i386__) || defined(__x86_64__)
     DECLARE_DOMCTL;
     DECLARE_HYPERCALL_BUFFER(void, buffer);
     bool get_state;
@@ -610,6 +611,7 @@ int xc_vcpu_get_extstate(xc_interface *xch,
 out:
     if ( get_state )
         xc_hypercall_buffer_free(xch, buffer);
+#endif
 
     return rc;
 }
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.