diff options
author | kaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk> | 2003-03-03 15:43:06 +0000 |
---|---|---|
committer | kaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk> | 2003-03-03 15:43:06 +0000 |
commit | f456b7444e6fa5a931a76960606bf0b4bc9b26fa (patch) | |
tree | 9d66ab06c457e50148b6be2b072a994fc4543d8f /xenolinux-2.4.21-pre4-sparse/include | |
parent | 20989dbdb2adad8912e687ed18f5fe32c2770d86 (diff) | |
download | xen-f456b7444e6fa5a931a76960606bf0b4bc9b26fa.tar.gz xen-f456b7444e6fa5a931a76960606bf0b4bc9b26fa.tar.bz2 xen-f456b7444e6fa5a931a76960606bf0b4bc9b26fa.zip |
bitkeeper revision 1.102.1.1 (3e63780anLue1rOR9-4fOlXH3ejAhA)
dom_mem_ops.h, balloon.c, Makefile, dom_mem_ops.c, README:
new file
Many files:
Boris's balloon driver.
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/include')
-rw-r--r-- | xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h | 11 | ||||
-rw-r--r-- | xenolinux-2.4.21-pre4-sparse/include/asm-xeno/page.h | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h index df25598730..16f37cfe65 100644 --- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h +++ b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor.h @@ -313,4 +313,15 @@ static inline int HYPERVISOR_set_fast_trap(int idx) return ret; } +static inline int HYPERVISOR_dom_mem_op(void *dom_mem_op) +{ + int ret; + __asm__ __volatile__ ( + TRAP_INSTR + : "=a" (ret) : "0" (__HYPERVISOR_dom_mem_op), + "b" (dom_mem_op) : "memory" ); + + return ret; +} + #endif /* __HYPERVISOR_H__ */ diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/page.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/page.h index e157a31a36..aad36820b7 100644 --- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/page.h +++ b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/page.h @@ -173,6 +173,10 @@ static __inline__ int get_order(unsigned long size) #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) +/* VIRT <-> MACHINE conversion */ +#define virt_to_machine(_a) (phys_to_machine(__pa(_a))) +#define machine_to_virt(_m) (__va(machine_to_phys(_m))) + #endif /* __KERNEL__ */ #endif /* _I386_PAGE_H */ |