|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] memaccess: reduce include dependencies
The common header doesn't itself need to include public/vm_event.h nor
public/memory.h. Drop their inclusion. This requires using the non-
typedef names in two prototypes and an inline function; by not changing
the callers and function definitions at the same time it'll remain
certain that the build would fail if the typedef itself was changed.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- a/xen/include/asm-arm/mem_access.h
+++ b/xen/include/asm-arm/mem_access.h
@@ -17,9 +17,11 @@
#ifndef _ASM_ARM_MEM_ACCESS_H
#define _ASM_ARM_MEM_ACCESS_H
+struct vm_event_st;
+
static inline
bool p2m_mem_access_emulate_check(struct vcpu *v,
- const vm_event_response_t *rsp)
+ const struct vm_event_st *rsp)
{
/* Not supported on ARM. */
return false;
--- a/xen/include/asm-x86/mem_access.h
+++ b/xen/include/asm-x86/mem_access.h
@@ -26,6 +26,8 @@
#ifndef __ASM_X86_MEM_ACCESS_H__
#define __ASM_X86_MEM_ACCESS_H__
+struct vm_event_st;
+
/*
* Setup vm_event request based on the access (gla is -1ull if not available).
* Handles the rw2rx conversion. Boolean return value indicates if event type
@@ -36,12 +38,12 @@
*/
bool p2m_mem_access_check(paddr_t gpa, unsigned long gla,
struct npfec npfec,
- vm_event_request_t **req_ptr);
+ struct vm_event_st **req_ptr);
/* Check for emulation and mark vcpu for skipping one instruction
* upon rescheduling if required. */
bool p2m_mem_access_emulate_check(struct vcpu *v,
- const vm_event_response_t *rsp);
+ const struct vm_event_st *rsp);
/* Sanity check for mem_access hardware support */
bool p2m_mem_access_sanity_check(const struct domain *d);
--- a/xen/include/xen/mem_access.h
+++ b/xen/include/xen/mem_access.h
@@ -24,8 +24,6 @@
#include <xen/types.h>
#include <xen/mm.h>
-#include <public/memory.h>
-#include <public/vm_event.h>
#include <asm/mem_access.h>
/*
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |