view tools/blktap2/vhd/Makefile @ 19647:1c627434605e

blktap2: a completely rewritten blktap implementation

Benefits to blktap2 over the old version of blktap:

* Isolation from xenstore - Blktap devices are now created directly on
the linux dom0 command line, rather than being spawned in response
to XenStore events. This is handy for debugging, makes blktap
generally easier to work with, and is a step toward a generic
user-level block device implementation that is not Xen-specific.

* Improved tapdisk infrastructure: simpler request forwarding, new
request scheduler, request merging, more efficient use of AIO.

* Improved tapdisk error handling and memory management. No
allocations on the block data path, IO retry logic to protect
transient block device failures. This has been tested and is known
to work on weird environments such as NFS soft mounts.

* Pause and snapshot of live virtual disks (see xmsnap script).

* VHD support. The VHD code in this release has been rigorously
tested, and represents a very mature implementation of the VHD

* No more duplication of mechanism with blkback. The blktap kernel
module has changed dramatically from the original blktap. Blkback
is now always used to talk to Xen guests, blktap just presents a
Linux gendisk that blkback can export. This is done while
preserving the zero-copy data path from domU to physical device.

These patches deprecate the old blktap code, which can hopefully be
removed from the tree completely at some point in the future.

Signed-off-by: Jake Wires <jake.wires@citrix.com>
Signed-off-by: Dutch Meyer <dmeyer@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 26 11:52:31 2009 +0100 (2009-05-26)
children 241607f414c8
line source
1 XEN_ROOT=../../../
2 BLKTAP_ROOT := ../
3 include $(XEN_ROOT)/tools/Rules.mk
5 IBIN = vhd-util vhd-update
8 LIBDIR = lib
10 CFLAGS += -Werror
11 CFLAGS += -Wno-unused
12 CFLAGS += -I../include
15 ifeq ($(CONFIG_X86_64),y)
16 CFLAGS += -fPIC
17 endif
19 ifeq ($(VHD_STATIC),y)
20 CFLAGS += -static
21 endif
23 LIBS := -L$(LIBDIR) -lvhd
24 LIBS += -luuid
26 # Get gcc to generate the dependencies for us.
27 CFLAGS += -Wp,-MD,.$(@F).d
28 DEPS = .*.d
30 all: build
32 build: libvhd $(IBIN)
34 libvhd:
35 @set -e
36 $(MAKE) -C $(LIBDIR) all
38 vhd-util: vhd-util.o
39 $(CC) $(CFLAGS) -o vhd-util vhd-util.o $(LIBS)
41 vhd-update: vhd-update.o
42 $(CC) $(CFLAGS) -o vhd-update vhd-update.o $(LIBS)
44 install: all
45 $(MAKE) -C $(LIBDIR) install
49 clean:
50 $(MAKE) -C $(LIBDIR) clean
51 rm -rf *.o *~ $(DEPS) $(IBIN)
53 .PHONY: all build clean install libvhd vhd-util vhd-update
55 -include $(DEPS)