mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
arm: Implement arch_get_xen_caps
TBD: correct arch name for this string. Should be "xen-" / "hvm-" or something else given the hybrid model we are using on ARM? Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Ian Campbell <Ian.Campbell@citrix.com>
This commit is contained in:
1 parent
a164ab5bda
commit
7cfc339cbc
3 files changed
+13
-1
No files matched your search
@@ -9,7 +9,6 @@ x: mov pc, lr
|
||||
DUMMY(alloc_pirq_struct);
|
||||
DUMMY(alloc_vcpu_guest_context);
|
||||
DUMMY(arch_get_info_guest);
|
||||
DUMMY(arch_get_xen_caps);
|
||||
DUMMY(arch_set_info_guest);
|
||||
DUMMY(arch_vcpu_reset);
|
||||
DUMMY(create_grant_host_mapping);
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <xen/init.h>
|
||||
#include <xen/mm.h>
|
||||
#include <xen/preempt.h>
|
||||
#include <xen/errno.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/current.h>
|
||||
|
||||
|
||||
@@ -271,6 +271,18 @@ void __init start_xen(unsigned long boot_phys_offset,
|
||||
reset_stack_and_jump(init_done);
|
||||
}
|
||||
|
||||
void arch_get_xen_caps(xen_capabilities_info_t *info)
|
||||
{
|
||||
/* Interface name is always xen-3.0-* for Xen-3.x. */
|
||||
int major = 3, minor = 0;
|
||||
char s[32];
|
||||
|
||||
(*info)[0] = '\0';
|
||||
|
||||
snprintf(s, sizeof(s), "xen-%d.%d-armv7l ", major, minor);
|
||||
safe_strcat(*info, s);
|
||||
}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* mode: C
|
||||
|
||||