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:
Ian Campbell committed 2012-02-15 12:24:19 +00:00
1 parent a164ab5bda
commit 7cfc339cbc
3 files changed
+13 -1

No files matched your search

-1
View File
@@ -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);
+1
View File
@@ -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>
+12
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.