diff options
author | kaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk> | 2003-02-24 17:56:39 +0000 |
---|---|---|
committer | kaf24@labyrinth.cl.cam.ac.uk <kaf24@labyrinth.cl.cam.ac.uk> | 2003-02-24 17:56:39 +0000 |
commit | 2b1c361bee7ecb1dc6d68b8ddadbaaf85f03587f (patch) | |
tree | 515cb0e4c0f07cd3720525dc69cc6a6e850655ff /xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h | |
parent | 704f9b012699742823381c48873de8e18f660366 (diff) | |
download | xen-2b1c361bee7ecb1dc6d68b8ddadbaaf85f03587f.tar.gz xen-2b1c361bee7ecb1dc6d68b8ddadbaaf85f03587f.tar.bz2 xen-2b1c361bee7ecb1dc6d68b8ddadbaaf85f03587f.zip |
bitkeeper revision 1.96 (3e5a5cd7-6YCRyx9vceH0j_ljuOe-Q)
hypervisor-ifs:
new file
Many files:
Allow forced killing of domains with 'kill_domain -f'. task_structs now reference counted.
.del-network.h~823d28e86ebe9d9b:
Delete: xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/network.h
.del-hypervisor-if.h~d1f6a7dd4307ddfe:
Delete: xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/hypervisor-if.h
.del-block.h~81aa08f4e2012da6:
Delete: xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h')
-rw-r--r-- | xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h b/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h deleted file mode 100644 index 627055bf0b..0000000000 --- a/xenolinux-2.4.21-pre4-sparse/include/asm-xeno/hypervisor-ifs/block.h +++ /dev/null @@ -1,78 +0,0 @@ -/****************************************************************************** - * block.h - * - * Block IO communication rings. - * - * These are the ring data structures for buffering messages between - * the hypervisor and guestos's. - * - */ - -#ifndef __BLOCK_H__ -#define __BLOCK_H__ - -#include <linux/kdev_t.h> - -/* the first four definitions match fs.h */ -#define XEN_BLOCK_READ 0 -#define XEN_BLOCK_WRITE 1 -#define XEN_BLOCK_READA 2 /* currently unused */ -#define XEN_BLOCK_SPECIAL 4 /* currently unused */ -#define XEN_BLOCK_PROBE 8 /* determine io configuration from hypervisor */ -#define XEN_BLOCK_DEBUG 16 /* debug */ - -#define BLK_RING_SIZE 128 -#define BLK_RING_MAX_ENTRIES (BLK_RING_SIZE - 2) -#define BLK_RING_INC(_i) (((_i)+1) & (BLK_RING_SIZE-1)) -#define BLK_RING_ADD(_i,_j) (((_i)+(_j)) & (BLK_RING_SIZE-1)) - -typedef struct blk_ring_req_entry -{ - void * id; /* for guest os use */ - int operation; /* XEN_BLOCK_READ or XEN_BLOCK_WRITE */ - char * buffer; - unsigned long block_number; /* block number */ - unsigned short block_size; /* block size */ - kdev_t device; - unsigned long sector_number; /* real buffer location on disk */ -} blk_ring_req_entry_t; - -typedef struct blk_ring_resp_entry -{ - void *id; - unsigned long status; -} blk_ring_resp_entry_t; - -typedef struct blk_ring_st -{ - unsigned int req_prod; /* Request producer. Updated by guest OS. */ - unsigned int resp_prod; /* Response producer. Updated by Xen. */ - union { - blk_ring_req_entry_t req; - blk_ring_resp_entry_t resp; - } ring[BLK_RING_SIZE]; -} blk_ring_t; - -#define MAX_XEN_DISK_COUNT 100 - -#define XEN_DISK_IDE 1 -#define XEN_DISK_SCSI 2 - -typedef struct xen_disk /* physical disk */ -{ - int type; /* disk type */ - unsigned long capacity; - unsigned char heads; /* hdreg.h::hd_geometry */ - unsigned char sectors; /* hdreg.h::hd_geometry */ - unsigned int cylinders; /* hdreg.h::hd_big_geometry */ - unsigned long start; /* hdreg.h::hd_geometry */ - void * gendisk; /* struct gendisk ptr */ -} xen_disk_t; - -typedef struct xen_disk_info -{ - int count; /* number of subsequent xen_disk_t structures to follow */ - xen_disk_t disks[100]; -} xen_disk_info_t; - -#endif |