Skip to contentSkip to conversation

Upstreaming Debian patches for Xen Qemu DM

PATCH Thomas Goirand 5 participants 5 messages Mar 23, 2010 – Mar 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

For the moment, I'm using these 5 patches for Xen Qemu in my package. The most important part is the Audio subsystem that by default is not working. Would anyone care applying them to the Git?

Also, it's been MONTHs since I'm calling for a sponsorship for the first upload in Debian (I'll manage later updates thanks to the Dm-Upload-Allowed field). Samuel, Ian, aren't you interested in sponsoring this one?

http://ftparchive.gplhost.com/debian/pool/lenny/main/x/xen-qemu-dm-3.4/
http://ftparchive.gplhost.com/debian/pool/lenny/main/x/xen-qemu-dm-3.4/xen-qemu-dm-3.4_3.4.2-1.dsc

Thomas

xen-config-host.mak +2 -2
@@ -1,6 +1,6 @@
 QEMU_ROOT ?= .
-XEN_ROOT ?= $(QEMU_ROOT)/../xen-unstable.hg
-include $(XEN_ROOT)/tools/Rules.mk
+XEN_ROOT ?= /nonexistant
+include $(QEMU_ROOT)/Rules.mk
 
 ifdef CONFIG_STUBDOM
 TARGET_DIRS=i386-stubdom
xen-setup-stubdom +1 -1
@@ -85,7 +85,7 @@
 fi
 
 cat <<END >>config-host.mak.new
-include \$(XEN_ROOT)/tools/Rules.mk
+include Rules.mk
 SUBDIR_RULES=subdir-\$(TARGET_DIRS)
 subdir-\$(TARGET_DIRS): libqemu_common.a
 -include \$(QEMU_ROOT)/xen-hooks.mak
Rules.mk new file +67 -0

67 lines not on this page · raw message

configure +3 -0
@@ -1382,6 +1382,9 @@
   echo "#define CONFIG_VDE 1" >> $config_h
   echo "VDE_LIBS=-lvdeplug" >> $config_mak
 fi
+if ! test -z "$audio_card_list"; then
+  echo "CONFIG_AUDIO=yes" >> $config_mak
+fi
 for card in $audio_card_list; do
     def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
     echo "$def=yes" >> $config_mak
audio/alsaaudio.c +1 -1
@@ -475,7 +475,7 @@
         (obt->fmt != req->fmt ||
          obt->nchannels != req->nchannels ||
          obt->freq != req->freq)) {
-        dolog ("Audio paramters for %s\n", typ);
+        dolog ("Audio parameters for %s\n", typ);
         alsa_dump_info (req, obt);
     }
 
xen-config-host.h +2 -2
@@ -32,8 +32,8 @@
 extern int xen_pause_requested;
 extern int vcpus;
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/xen/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/qemu-ifdown"
+#define DEFAULT_NETWORK_SCRIPT "/etc/xen/scripts/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/scripts/qemu-ifdown"
 
 #ifdef CONFIG_STUBDOM
 #define bdrv_host_device bdrv_raw
qemu-img-xen.1 renamed from qemu-img-xen.1.orig +5 -5
@@ -123,17 +123,17 @@
 .rm #[ #] #H #V #F C
 .\" ========================================================================
 .\"
-.IX Title "QEMU-IMG 1"
-.TH QEMU-IMG 1 "2009-12-24" " " " "
+.IX Title "qemu-img-xen 1"
+.TH qemu-img-xen 1 "2009-12-24" " " " "
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
 .nh
 .SH "NAME"
-qemu\-img \- QEMU disk image utility
+qemu\-img\-xen \- QEMU disk image utility (Xen version)
 .SH "SYNOPSIS"
 .IX Header "SYNOPSIS"
-usage: qemu-img command [command options]
+usage: qemu-img-xen command [command options]
 .SH "OPTIONS"
 .IX Header "OPTIONS"
 The following commands are supported:
@@ -177,7 +177,7 @@
 being simple and easily exportable to all other emulators. If your
 file system supports \fIholes\fR (for example in ext2 or ext3 on
 Linux or \s-1NTFS\s0 on Windows), then only the written sectors will reserve
-space. Use \f(CW\*(C`qemu\-img info\*(C'\fR to know the real size used by the
+space. Use \f(CW\*(C`qemu\-img\-xen info\*(C'\fR to know the real size used by the
 image or \f(CW\*(C`ls \-ls\*(C'\fR on Unix/Linux.
 .ie n .IP """qcow2""" 4
 .el .IP "\f(CWqcow2\fR" 4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines · Thomas Goirand, le Tue 23 Mar 2010 17:55:11 +0800, a écrit :

Also, it's been MONTHs since I'm calling for a sponsorship for the first upload in Debian (I'll manage later updates thanks to the Dm-Upload-Allowed field). Samuel, Ian, aren't you interested in sponsoring this one?

I don't have the time to do it.

Samuel

#2 lore raw
In reply to Thomas Goirand

xen-config-host.mak line 6

Quoted 11 lines · Thomas Goirand
xen-config-host.mak +2 -2
@@ -1,6 +1,6 @@
 QEMU_ROOT ?= .
-XEN_ROOT ?= $(QEMU_ROOT)/../xen-unstable.hg
-include $(XEN_ROOT)/tools/Rules.mk
+XEN_ROOT ?= /nonexistant
+include $(QEMU_ROOT)/Rules.mk
 
 ifdef CONFIG_STUBDOM
 TARGET_DIRS=i386-stubdom

This looks rather similar to my patch. Please explain why this would be applicable to upstream.

configure line 1390

Quoted 12 lines
configure +3 -0
@@ -1382,6 +1382,9 @@
   echo "#define CONFIG_VDE 1" >> $config_h
   echo "VDE_LIBS=-lvdeplug" >> $config_mak
 fi
+if ! test -z "$audio_card_list"; then
+  echo "CONFIG_AUDIO=yes" >> $config_mak
+fi
 for card in $audio_card_list; do
     def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
     echo "$def=yes" >> $config_mak

Audio for a server?

xen-config-host.h line 39

Quoted 13 lines
xen-config-host.h +2 -2
@@ -32,8 +32,8 @@
 extern int xen_pause_requested;
 extern int vcpus;
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/xen/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/qemu-ifdown"
+#define DEFAULT_NETWORK_SCRIPT "/etc/xen/scripts/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/scripts/qemu-ifdown"
 
 #ifdef CONFIG_STUBDOM
 #define bdrv_host_device bdrv_raw

Debian specific.

qemu-img-xen.1 line 127

Quoted 10 lines
qemu-img-xen.1 renamed from qemu-img-xen.1.orig +2 -2
@@ -123,17 +123,17 @@
 .rm #[ #] #H #V #F C
 .\" ========================================================================
 .\"
-.IX Title "QEMU-IMG 1"
-.TH QEMU-IMG 1 "2009-12-24" " " " "
+.IX Title "qemu-img-xen 1"
+.TH qemu-img-xen 1 "2009-12-24" " " " "

This tool is called qemu-img and included in qemu-utils.

Bastian

Signature · 2 lines
Those who hate and fight must stop themselves -- otherwise it is not stopped.
		-- Spock, "Day of the Dove", stardate unknown
#3 lore raw

Am 25.03.2010 um 00:05 schrieb Bastian Blank:

Quoted 16 lines · Thomas Goirand
Quoted 11 lines
xen-config-host.mak +0 -0
@@ -1,6 +1,6 @@

QEMU_ROOT ?= .

xen-config-host.mak +2 -2
-XEN_ROOT ?= $(QEMU_ROOT)/../xen-unstable.hg
-include $(XEN_ROOT)/tools/Rules.mk
+XEN_ROOT ?= /nonexistant
+include $(QEMU_ROOT)/Rules.mk

ifdef CONFIG_STUBDOM
TARGET_DIRS=i386-stubdom

This looks rather similar to my patch. Please explain why this would be applicable to upstream.

Quoted 14 lines
Quoted 10 lines
configure +0 -0
@@ -1382,6 +1382,9 @@
  echo "#define CONFIG_VDE 1" >> $config_h
  echo "VDE_LIBS=-lvdeplug" >> $config_mak

fi

configure +3 -0
+if ! test -z "$audio_card_list"; then
+  echo "CONFIG_AUDIO=yes" >> $config_mak
+fi

for card in $audio_card_list; do

Quoted 2 lines
    def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
    echo "$def=yes" >> $config_mak

Audio for a server?

I have some existing configurations of virtualized Windows XP machines that are configured with sound hardware (yes, I know, that it is not needed). And I know a company, that has configured some of its VMs with a sound card too (maybe they don't even know it, that it is not neccessary). If we do not want to break some existing setups, we should support sound hardware with qemu-dm (the 3.2.1 lenny version had it too). 2nd, I used a screen recording software, that only worked, when a sound card was installed. Maybe I should use better software, but … ;-)

Quoted 35 lines
Quoted 4 lines

xen-config-host.h line 39

Quoted 10 lines
xen-config-host.h +2 -2
@@ -32,8 +32,8 @@
 extern int xen_pause_requested;
 extern int vcpus;
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/xen/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/qemu-ifdown"
+#define DEFAULT_NETWORK_SCRIPT "/etc/xen/scripts/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/scripts/qemu-ifdown"
 
 #ifdef CONFIG_STUBDOM
 #define bdrv_host_device bdrv_raw

Debian specific.

Quoted 10 lines
qemu-img-xen.1 renamed from qemu-img-xen.1.orig +0 -0
@@ -123,17 +123,17 @@

.rm #[ #] #H #V #F C
.\" ======================================================================== .\"
-.IX Title "QEMU-IMG 1"
-.TH QEMU-IMG 1 "2009-12-24" " " " "
+.IX Title "qemu-img-xen 1"
+.TH qemu-img-xen 1 "2009-12-24" " " " "

This tool is called qemu-img and included in qemu-utils.

Bastian

Signature · 2 lines
Those who hate and fight must stop themselves -- otherwise it is not stopped.
		-- Spock, "Day of the Dove", stardate unknown
#4 lore raw

Hi!

Someone knows if the Debian Squeeze will have the paravirt_ops dom0 based
on 2.6.32.10 from Jeremy's tree, HVM normal domains and HVM stubdomains?

Thanks!
Thiago

Quoted 77 lines · Christian Motschke

Am 25.03.2010 um 00:05 schrieb Bastian Blank:

Quoted 16 lines · Thomas Goirand
Quoted 11 lines
xen-config-host.mak +0 -0
@@ -1,6 +1,6 @@

QEMU_ROOT ?= .

xen-config-host.mak +2 -2
-XEN_ROOT ?= $(QEMU_ROOT)/../xen-unstable.hg
-include $(XEN_ROOT)/tools/Rules.mk
+XEN_ROOT ?= /nonexistant
+include $(QEMU_ROOT)/Rules.mk

ifdef CONFIG_STUBDOM
TARGET_DIRS=i386-stubdom

This looks rather similar to my patch. Please explain why this would be applicable to upstream.

Quoted 14 lines
Quoted 10 lines
configure 2010-03-23 17:09:30.000000000 +0800 renamed from configure 2010-03-23 17:08:39.000000000 +0800 +0 -0
@@ -1382,6 +1382,9 @@
  echo "#define CONFIG_VDE 1" >> $config_h
  echo "VDE_LIBS=-lvdeplug" >> $config_mak

fi

configure 2010-03-23 17:09:30.000000000 +0800 renamed from configure 2010-03-23 17:08:39.000000000 +0800 +3 -0
+if ! test -z "$audio_card_list"; then
+  echo "CONFIG_AUDIO=yes" >> $config_mak
+fi

for card in $audio_card_list; do

Quoted 2 lines
    def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
    echo "$def=yes" >> $config_mak

Audio for a server?

I have some existing configurations of virtualized Windows XP machines that are configured with sound hardware (yes, I know, that it is not needed). And I know a company, that has configured some of its VMs with a sound card too (maybe they don't even know it, that it is not neccessary). If we do not want to break some existing setups, we should support sound hardware with qemu-dm (the 3.2.1 lenny version had it too). 2nd, I used a screen recording software, that only worked, when a sound card was installed. Maybe I should use better software, but … ;-)

Quoted 17 lines
Quoted 4 lines

xen-config-host.h 2010-01-06 14:25:11.000000000 +0800 line 39

Quoted 10 lines
xen-config-host.h 2010-01-06 14:25:11.000000000 +0800 renamed from xen-config-host.h 2010-01-06 14:18:11.000000000 +0800 +2 -2
@@ -32,8 +32,8 @@
 extern int xen_pause_requested;
 extern int vcpus;
 
-#define DEFAULT_NETWORK_SCRIPT "/etc/xen/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/qemu-ifdown"
+#define DEFAULT_NETWORK_SCRIPT "/etc/xen/scripts/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/scripts/qemu-ifdown"
 
 #ifdef CONFIG_STUBDOM
 #define bdrv_host_device bdrv_raw

Debian specific.

Quoted 5 lines
Quoted 5 lines
qemu-img-xen.1 2009-12-24 00:56:11.000000000 +0800 renamed from qemu-img-xen.1.orig 2009-12-24 00:51:05.000000000 +0800 +0 -0
@@ -123,17 +123,17 @@

.rm #[ #] #H #V #F C
.\"

========================================================================

Quoted 6 lines
Quoted 5 lines

.\"
-.IX Title "QEMU-IMG 1"
-.TH QEMU-IMG 1 "2009-12-24" " " " "
+.IX Title "qemu-img-xen 1"
+.TH qemu-img-xen 1 "2009-12-24" " " " "

Quoted 6 lines

This tool is called qemu-img and included in qemu-utils.

Bastian

--
Those who hate and fight must stop themselves -- otherwise it is not

Quoted 9 lines

stopped.

Quoted 1 line

-- Spock, "Day of the Dove", stardate unknown

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel