Can the qemu-xen git repository be moved to a 'git://' protocol? It can save a lot of time...
Hi,
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a 'git://' protocol, which is much faster. Can this be done?
Tom
PATCH 1/1 use git smart server protocol for qemu tree by default
Tom Rotenberg writes ("[Xen-devel] Can the qemu-xen git repository be moved to a 'git://' protocol? It can save a lot of time..."):
Quoted 4 lines
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?
Yes. We were using http:// because we didn't have a git server on xenbits, but now we do.
Keir: this patch is for xen-unstable but given that the git daemon is a property of the xenbits system configuration rather of the specific branch, it wouldn't be unreasonable to apply it to the older trees too.
Ian.
use git smart server protocol for qemu tree by default
xenbits supports the git protocol now, which is much faster (and produces less noise in the build log too).
Config.mk +1 -1
@@ -141,7 +141,7 @@ XEN_EXTFILES_URL=http://xenbits.xensourc # the internet. The original download URL is preserved as a comment # near the place in the Xen Makefiles where the file is used. -QEMU_REMOTE=http://xenbits.xensource.com/git-http/qemu-xen-unstable.git +QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL.
Quoted 6 lines · Tom Rotenberg
Hi,
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?
Why not have xen use an hg mirror of the qemu-xen tree? These are easy to set up (it's a one-line "hg convert" cron job), and it would simplify life for xen hackers to need only one obscure version control system.
RE: [PATCH] use git smart server protocol for qemu tree by default
In reply to Ian JacksonHi Ian,
git clone http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
and
git clone git://xenbits.xensource.com/qemu-xen-unstable.git
should always return the exactly same repository, correct?
I can't access the latter since I'm behind a firewall. I can only access the http interface.
Thanks,
-- Dexuan
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ian Jackson
Sent: 2009?7?16? 22:02
To: [email protected]
Cc: Tom Rotenberg
Subject: [Xen-devel] [PATCH] use git smart server protocol for qemu tree by default
Tom Rotenberg writes ("[Xen-devel] Can the qemu-xen git repository be moved to a 'git://' protocol? It can save a lot of time..."):
Quoted 4 lines
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?
Yes. We were using http:// because we didn't have a git server on xenbits, but now we do.
Keir: this patch is for xen-unstable but given that the git daemon is a property of the xenbits system configuration rather of the specific branch, it wouldn't be unreasonable to apply it to the older trees too.
Ian.
use git smart server protocol for qemu tree by default
xenbits supports the git protocol now, which is much faster (and produces less noise in the build log too).
Config.mk +1 -1
@@ -141,7 +141,7 @@ XEN_EXTFILES_URL=http://xenbits.xensourc # the internet. The original download URL is preserved as a comment # near the place in the Xen Makefiles where the file is used. -QEMU_REMOTE=http://xenbits.xensource.com/git-http/qemu-xen-unstable.git +QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH] use git smart server protocol for qemu tree by default
It may make sense to document the git server path in Config.mk but not enable it by default?
-- Keir
Quoted 70 lines · Dexuan
Hi Ian,
git clone http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
and
git clonegit://xenbits.xensource.com/qemu-xen-unstable.gitshould always return the exactly same repository, correct?
I can't access the latter since I'm behind a firewall. I can only access the http interface.
Thanks,
-- Dexuan-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ian Jackson
Sent: 2009?7?16? 22:02
To: [email protected]
Cc: Tom Rotenberg
Subject: [Xen-devel] [PATCH] use git smart server protocol for qemu tree by defaultTom Rotenberg writes ("[Xen-devel] Can the qemu-xen git repository be moved to a '
git://' protocol? It can save a lot of time..."):Quoted 4 lines
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?Yes. We were using http:// because we didn't have a git server on xenbits, but now we do.
Keir: this patch is for xen-unstable but given that the git daemon is a property of the xenbits system configuration rather of the specific branch, it wouldn't be unreasonable to apply it to the older trees too.
Ian.
use git smart server protocol for qemu tree by default
xenbits supports the git protocol now, which is much faster (and produces less noise in the build log too).
Signed-off-by Ian Jackson <[email protected]>diff -r
e07726c03d31Config.mkConfig.mk Thu Jul 16 14:58:49 2009 +0100 renamed from Config.mk Thu Jul 16 10:32:55 2009 +0100 +1
-1@@ -141,7 +141,7 @@ XEN_EXTFILES_URL=http://xenbits.xensourc # the internet. The original download URL is preserved as a comment # near the place in the Xen Makefiles where the file is used. -QEMU_REMOTE=http://xenbits.xensource.com/git-http/qemu-xen-unstable.git +QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
RE: [PATCH] use git smart server protocol for qemu tree by default
In reply to Cui, DexuanCui, Dexuan writes ("RE: [Xen-devel] [PATCH] use git smart server protocol for qemu tree by default"):
Quoted 6 lines
Hi Ian,
git clone http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
and
git clonegit://xenbits.xensource.com/qemu-xen-unstable.gitshould always return the exactly same repository, correct?
Yes, barring misfeatures in git. Certainly in our case you should be able to use http.
Quoted 1 line
I can't access the latter since I'm behind a firewall. I can only access the http interface.
I would recommend getting your firewall fixed. The git protocol is much more efficient.
Ian.
Re: [PATCH] use git smart server protocol for qemu tree by default
In reply to Keir FraserKeir Fraser writes ("Re: [Xen-devel] [PATCH] use git smart server protocol for qemu tree by default"):
Quoted 2 lines
It may make sense to document the git server path in Config.mk but not enable it by default?
I think if many people have this problem we could document the http:
path. Nowadays people really ought to arrange that git can go through their firewall (after all it's not as if http isn't used to tunnel all manner of nonsense!)
Ian.
Quoted 8 lines · Brendan Cully
Quoted 6 lines · Tom Rotenberg
Hi,
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?
Quoted 4 lines
Why not have xen use an hg mirror of the qemu-xen tree? These are easy to set up (it's a one-line "hg convert" cron job), and it would simplify life for xen hackers to need only one obscure version control system.
We already have an hg mirror for qemu-xen, it is just not used by default:
Quoted 14 lines · Stefano Stabellini
Quoted 8 lines · Brendan Cully
Quoted 6 lines · Tom Rotenberg
Hi,
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?Quoted 4 lines
Why not have xen use an hg mirror of the qemu-xen tree? These are easy to set up (it's a one-line "hg convert" cron job), and it would simplify life for xen hackers to need only one obscure version control system.
Quoted 4 lines
We already have an hg mirror for qemu-xen, it is just not used by default:
Ah, wonderful. Would it make sense to use this tree by default? We can assume users already have hg working to pull the master tree, and it means one less confusing build tool. The git tree doesn't seem to me to offer any advantages over an hg mirror for the majority of users, but it does increase the number of complicated moving parts in an already difficult build system.
Of course the git tree should remain an option for those people that want to use it to collaborate with upstream qemu development.
I think c/s 19956 should be reverted.
After struggling through a recent default build (and finally remembering this discussion from two weeks ago), I have to agree with Brendan. It's bad enough to have two different sourcecode control systems, but those unfamiliar with git should not have to learn about its features and deficiencies (e.g. inability to use an http proxy) to build xen-unstable.
C'mon people, it's critical that we make it as easy as possible for newcomers and people who are not top-notch linux sysadmins to still do Xen development.
Quoted 3 lines
From: Ian Jackson [mailto:[email protected]]
I would recommend getting your firewall fixed. The git protocol is much more efficient.
The git protocol is much LESS efficient if you don't know what this means:
git.... [0: 999.99.99.999]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Or how to "get your firewall fixed" (even if that is possible in your organization or university) or how to set up tunneling software to go around the firewall.
So inefficient in fact as to take a lot more time to figure it out and "fix it" than to use http to begin with.
The default Xen build should be braindead easy to use; I realize we are far from that already but that's no excuse for making it worse.
My two cents.
Dan
P.S. Even if I lose this battle, it should be an absolute minimum that changes to the build dependencies/process are accompanied by changes to the main README. I don't see any mention of qemu/ioemu at all and the KERNELS= info is now wrong as well. Are we trying to ensure the failure of newcomers that want to contribute to Xen?
Quoted 27 lines
-----Original Message-----
From: Brendan Cully [mailto:[email protected]]
Sent: Thursday, July 16, 2009 5:03 PM
To: Tom Rotenberg
Cc: [email protected]
Subject: Re: [Xen-devel] Can the qemu-xen git repository be moved to a 'git://' protocol? It can save a lot of time...Quoted 6 lines · Tom Rotenberg
Hi,
Currently, xen clones the qemu-xen using an 'http://' protocol, and this takes a lot of time. It can be improved a lot if it will be moved to be shared by a '
git://' protocol, which is much faster. Can this be done?Why not have xen use an hg mirror of the qemu-xen tree? These are easy to set up (it's a one-line "hg convert" cron job), and it would simplify life for xen hackers to need only one obscure version control system.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH] use git smart server protocol for qemu tree by default
In reply to Ian JacksonQuoted 11 lines · Ian Jackson
Keir Fraser writes ("Re: [Xen-devel] [PATCH] use git smart server protocol for qemu tree by default"):
Quoted 3 lines
It may make sense to document the git server path in Config.mk but not enable it by default?
I think if many people have this problem we could document the http:
path. Nowadays people really ought to arrange that git can go through their firewall (after all it's not as if http isn't used to tunnel all manner of nonsense!)
Pfft. We can't even get git through most of the Citrix networks. The git protocol is an interoperability disaster.
J
Quoted 7 lines · Brendan Cully
Ah, wonderful. Would it make sense to use this tree by default? We can assume users already have hg working to pull the master tree, and it means one less confusing build tool. The git tree doesn't seem to me to offer any advantages over an hg mirror for the majority of users, but it does increase the number of complicated moving parts in an already difficult build system.
+1. Presumably using something like the forest extension would help here.
J
Re: [PATCH] use git smart server protocol for qemu tree by default
In reply to Jeremy FitzhardingeQuoted 2 lines
Pfft. We can't even get git through most of the Citrix networks. The git protocol is an interoperability disaster.
If random things tunneled by pretending to be http work then your firewall isn't very secure. If it stops other protocols and you can't get it fixed then perhaps your problems are not git.
Anything over http/https hacks are not "interoperability", but "hey wakeup your security your needs looking at"
Alan
Re: [PATCH] use git smart server protocol for qemu tree by default
Quoted 6 lines · Alan Cox
Quoted 2 lines
Pfft. We can't even get git through most of the Citrix networks. The git protocol is an interoperability disaster.
If random things tunneled by pretending to be http work then your firewall isn't very secure. If it stops other protocols and you can't get it fixed then perhaps your problems are not git.
Sure, but most people don't control their own firewall; why put a fight with the IT department between them and building Xen, when we could just use the HG mirror that we already provide?
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]
Quoted 11 lines · Jeremy Fitzhardinge
Quoted 7 lines · Brendan Cully
Ah, wonderful. Would it make sense to use this tree by default? We can assume users already have hg working to pull the master tree, and it means one less confusing build tool. The git tree doesn't seem to me to offer any advantages over an hg mirror for the majority of users, but it does increase the number of complicated moving parts in an already difficult build system.
+1. Presumably using something like the forest extension would help here.
Given that so many people are having problems with the git protocol I think we could at least make the old git http repo the default.
Quoted 10 lines · Jeremy Fitzhardinge
Quoted 7 lines · Brendan Cully
Ah, wonderful. Would it make sense to use this tree by default? We can assume users already have hg working to pull the master tree, and it means one less confusing build tool. The git tree doesn't seem to me to offer any advantages over an hg mirror for the majority of users, but it does increase the number of complicated moving parts in an already difficult build system.
+1. Presumably using something like the forest extension would help here.
Mercurial 1.3 introduces subrepositories [1], which are ideal for this. You'd just create a .hgsub file in the xen root like
ioemu-remote = http://xenbits.xensource.com/ext/qemu-xen-unstable.hg
and whenever you commit in the main xen tree, hg records the version of the qemu tree in use automatically, and checks out the appropriate version whenever you hg update.
Of course, this only works with 1.3+. In the meantime, here's a patch that imitates the qemu git Make logic for hg.
[1] http://mercurial.selenic.com/wiki/subrepos
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1253584504 25200
# Node ID e9965de05705739487036b00039b8a7ee6ac5df5 # Parent 72d130772f36284b904da2369410de795237f712 Update Makefile to allow use of hg ioemu mirror.
HG vs ioemu is controlled by setting QEMU_GIT to y or n.
Config.mk +17 -4
@@ -142,18 +142,31 @@ # near the place in the Xen Makefiles where the file is used. # GIT protocol can be faster than HTTP, if your firewall lets it through. -# QEMU_REMOTE=git://xenbits.xensource.com/qemu-xen-unstable.git -QEMU_REMOTE=http://xenbits.xensource.com/git-http/qemu-xen-unstable.git +QEMU_GITURL=git://xenbits.xensource.com/qemu-xen-unstable.git +QEMU_HGURL ?= http://xenbits.xensource.com/ext/qemu-xen-unstable.hg + +# set to y to use the git tree +QEMU_GIT ?= n # Specify which qemu-dm to use. This may be `ioemu' to use the old -# Mercurial in-tree version, or a local directory, or a git URL. +# Mercurial in-tree version, or a local directory, or an HG URL, +# or a git URL if QEMU_GIT is y # CONFIG_QEMU ?= ../qemu-xen.git +ifeq (y,$(QEMU_GIT)) + QEMU_REMOTE ?= $(QEMU_GITURL) +else + QEMU_REMOTE ?= $(QEMU_HGURL) +endif CONFIG_QEMU ?= $(QEMU_REMOTE) -QEMU_TAG ?= 3de6cb51b19c46967cbc88ceb202b240c736eeca +QEMU_GIT_TAG ?= 3de6cb51b19c46967cbc88ceb202b240c736eeca # Fri Sep 11 18:34:25 2009 +0100 # Merge branch 'latara' +QEMU_HG_TAG ?= 586c7b21b88a +# Fri Sep 04 16:21:25 2009 +0100 +# graphics passthrough with VT-d + OCAML_XENSTORED_REPO=http://xenbits.xensource.com/ext/xen-ocaml-tools.hg # Build OCAML version of xenstored instead of the in-tree C version?
config/StdGNU.mk +2 -1
@@ -13,8 +13,9 @@ MSGFMT = msgfmt MSGMERGE = msgmerge -# Allow git to be wrappered in the environment +# Allow git/hg to be wrappered in the environment GIT ?= git +HG ?= hg INSTALL = install INSTALL_DIR = $(INSTALL) -d -m0755 -p
tools/Makefile +14 -7
@@ -84,13 +84,20 @@ if [ ! -d ioemu-remote ]; then \ rm -rf ioemu-remote ioemu-remote.tmp; \ mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \ - $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ - if [ "$(QEMU_TAG)" ]; then \ - cd ioemu-remote.tmp; \ - $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ - $(GIT) checkout -b dummy $(QEMU_TAG); \ - cd ..; \ - fi; \ + if [ "$(QEMU_GIT)" = y ]; then \ + $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ + if [ "$(QEMU_GIT_TAG)" ]; then \ + cd ioemu-remote.tmp; \ + $(GIT) branch -D dummy >/dev/null 2>&1 ||:; \ + $(GIT) checkout -b dummy $(QEMU_GIT_TAG); \ + cd ..; \ + fi; \ + else \ + $(HG) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ + if [ "$(QEMU_HG_TAG)" ]; then \ + $(HG) -R ioemu-remote.tmp update $(QEMU_HG_TAG); \ + fi; \ + fi; \ mv ioemu-remote.tmp ioemu-remote; \ fi; \ rm -f ioemu-dir; \
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel