From: Ryan Grimm <grimm@us.ibm.com>
To: Christian.Limpach@cl.cam.ac.uk
Cc: Dan Smith <danms@us.ibm.com>, Ryan Grimm <grimm@us.ibm.com>,
Xen Devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 0 of 6] dm-userspace xen integration
Date: Tue, 22 Aug 2006 11:42:37 -0500 [thread overview]
Message-ID: <20060822164237.GA11949@localhost.localdomain> (raw)
In-Reply-To: <3d8eece20608220203n51498659hdf973368460a0cd2@mail.gmail.com>
On Tue, Aug 22, 2006 at 10:03:40AM +0100, Christian Limpach wrote:
> >Cowd and its associated plugins are a bit rough right now, but they work,
> >and
> >we plan on smoothing things out in the near future.
> >
> >This patch is broken up into 6 parts:
> >
> >[1/6]: A patch to the xen kernel in the patches/ directory. Also the
> >default
> >config files will build dm_userspace as a module.
> >
> >[2/6]: Adds the base for cowd, the userspace tool, to the tools directory.
>
> This needs to be changed to fail gracefully if the auto* tools are not
> installed.
> Is the use of auto* tools absolutely necessary? Could we checkin the
> generated files as well?
>
> Also, I think the tools/Makefile could do with a bit of cleanup where
> we define %-build, %-install and %-clean targets which do the default
> action and then override them with specific actions for ioemu and I
> guess cowd.
How about cleaning up the Makefile like this? Then, if we can get our
cowd tool in the tree, we can just add it to the SUBDIRS-y, define our
all, install, and clean, and ensure we exit gracefully.
Signed-off-by: Ryan Grimm <grimm@us.ibm.com>
diff -r 9ebba79efbe9 -r 4c4b0563656d tools/Makefile
--- a/tools/Makefile Mon Aug 21 15:03:02 2006 -0500
+++ b/tools/Makefile Tue Aug 22 11:37:05 2006 -0500
@@ -19,33 +19,35 @@ SUBDIRS-y += libaio
SUBDIRS-y += libaio
SUBDIRS-y += blktap
+ifdef CONFIG_IOEMU
+SUBDIRS-y += ioemu
+export IOEMU_DIR ?= ioemu
+endif
+
# These don't cross-compile
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
SUBDIRS-y += python
SUBDIRS-y += pygrub
endif
-.PHONY: all
+.PHONY: all
all: check
@set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) $$subdir-$@; \
done
- $(MAKE) ioemu
-.PHONY: install
+.PHONY: install
install: check
@set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) $$subdir-$@; \
done
- $(MAKE) ioemuinstall
$(INSTALL_DIR) -p $(DESTDIR)/var/xen/dump
.PHONY: clean
clean: check_clean
@set -e; for subdir in $(SUBDIRS-y); do \
- $(MAKE) -C $$subdir $@; \
+ $(MAKE) $$subdir-$@; \
done
- $(MAKE) ioemuclean
.PHONY: distclean
distclean: clean
@@ -58,16 +60,22 @@ check_clean:
check_clean:
$(MAKE) -C check clean
-.PHONY: ioemu ioemuinstall ioemuclean
-ifdef CONFIG_IOEMU
-export IOEMU_DIR ?= ioemu
-ioemu ioemuinstall:
+.PHONY: %-all
+%-all:
+ $(MAKE) -C $* all
+
+.PHONY: %-install
+%-install:
+ $(MAKE) -C $* install
+
+.PHONY: %-install
+%-clean:
+ $(MAKE) -C $* clean
+
+.PHONY: ioemu ioemu-all ioemu-install ioemu-clean
+ioemu ioemu-all ioemu-install:
[ -f $(IOEMU_DIR)/config-host.mak ] || \
(cd $(IOEMU_DIR) && sh configure --prefix=/usr)
- $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
-ioemuclean:
+ $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu-%,%,$@)
+ioemu-clean:
$(MAKE) -C $(IOEMU_DIR) distclean
-else
-ioemu ioemuinstall ioemuclean:
-endif
-
>
> >[3/6]: Adds internal libdmu support to cowd
>
> Is this there because libdevmapper doesn't support this yet? Is there
> any version of libdevmapper which supports this yet?
>
> >[4/6]: The dscow plugin for cowd
> >
> >[5/6]: The qcow plugin for cowd
> >
> >[6/6]: A script to start the dm-userspace backend as well as an xm example
> >configuration file.
>
> I don't think an extra example config file is needed for a single line
> change. Just add the example to the existing config files.
>
> Does this work for qemu domains? If so how, if not, what are your
> plans to make it work for qemu domains?
>
> christian
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
--
Thanks,
Ryan Grimm
IBM Linux Technology Center
next prev parent reply other threads:[~2006-08-22 16:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-21 20:54 [PATCH 0 of 6] dm-userspace xen integration Ryan Grimm
2006-08-22 9:03 ` Christian Limpach
2006-08-22 13:40 ` Dan Smith
2006-08-22 21:11 ` Christian Limpach
2006-08-22 22:03 ` Dan Smith
2006-08-22 16:42 ` Ryan Grimm [this message]
2006-08-22 21:04 ` Dan Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060822164237.GA11949@localhost.localdomain \
--to=grimm@us.ibm.com \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=danms@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.