Tools backports to 4.1
Ian Jackson
Acked-by Ian Campbell Acked-by Ian Campbell Acked-by Ian Campbell Acked-by Ian Campbell Acked-by Ian Campbell Reviewed-by Konrad Rzeszutek Wilk Acked-by Ian Campbell Acked-by Ian Campbell Acked-by Ian Campbell Acked-by Tested-by RoluI have backported a number of the tools fixes from 4.2 to 4.1.
This one looked like a good candidate but it looked like too big a job to bite off right now (the c/s is in 4.2):
changeset: 25908:9ebebb1904fd user: Roger Pau Monne <[email protected]> date: Fri Oct 26 17:02:22 2012 +0100
description:
libfsimage: add ext4 support for CentOS 5.x
This one (in qemu-xen-4.2-testing.git) needed adjusting which I hope I've done right:
commit d94efd9aa814f17f3243dae91476dc42b5ad052e
Author: Frediano Ziglio <[email protected]>
Date: Tue Aug 7 18:17:27 2012 +0100
mapcache: Fix invalidate if memory requested was not bucket aligned
I was cautious about build system changes and didn't take any libxl backports.
The full list of commits is below.
changeset: 23394:8cd220183845 user: Matt Wilson <[email protected]> date: Tue Nov 13 18:08:16 2012 +0000 files: docs/man/xmdomain.cfg.pod.5
description:
docs: correct formatting errors in xmdomain.cfg
This patch corrects the following errors produced by pod2man:
Hey! The above document had some coding errors, which are explained below:
Around line 301:
You can't have =items (as at line 305) unless the first thing after the =over is an =item
Around line 311:
'=item' outside of any '=over'
xen-unstable changeset: 25840:c7e4b7e64303
xen-4.2-testing changeset: 25885:c23d938e3e64
changeset: 23395:8931942405ea user: Olaf Hering <[email protected]> date: Tue Nov 13 18:09:07 2012 +0000 files: tools/pygrub/src/pygrub
description:
pygrub: always append --args
If a bootloader entry in menu.lst has no additional kernel command line options listed and the domU.cfg has 'bootargs="--args=something"' the additional arguments from the config file are not passed to the kernel. The reason for that incorrect behaviour is that run_grub appends arg only if the parsed config file has arguments listed.
Fix this by appending args from image section and the config file separatly. To avoid adding to a NoneType initialize grubcfg['args'] to an empty string. This does not change behaviour but simplifies the code which appends the string.
xen-unstable changeset: 25941:795c493fe561
xen-4.2-testing changeset: 25891:7e91c668bae2
changeset: 23396:30a7232b184d user: Olaf Hering <[email protected]> date: Tue Nov 13 18:09:58 2012 +0000 files: tools/hotplug/Linux/network-nat
description:
hotplug/Linux: Remove tracing (bash -x) from network-nat script
xen-unstable changeset: 26006:8b6870d686d6
xen-4.2-testing changeset: 25896:6adf0c7937bf
changeset: 23397:e9f906ff6539 user: Olaf Hering <[email protected]> date: Tue Nov 13 18:10:06 2012 +0000 files: tools/xenballoon/xenballoond.init
description:
xenballoond.init: remove 4 from default runlevel
Remove 4 from default runlevel in xenballoond.init.
Similar to what changeset 24847:0900b1c905f1 does in xencommons, remove runlevel 4 from the other runlevel scripts. LSB defines runlevel 4 as reserved for local use, the local sysadmin is responsible for symlink creation in rc4.d.
xen-unstable changeset: 26007:fe756682cc7f
xen-4.2-testing changeset: 25897:dcd4bf824284
changeset: 23398:0ac3938a6cee user: Olaf Hering <[email protected]> date: Tue Nov 13 18:10:15 2012 +0000 files: tools/pygrub/src/pygrub
description:
pygrub: correct typo in --args assignment
If pygrub was called with --args="some thing", then this string should be append to the kernel command line. But the last changeset 25941:795c493fe561 contained a typo, it assigns 'args' instead of 'arg'.
Rename the local variable which holds the string from the domain config file to avoid further confusion.
xen-unstable changeset: 26018:ecc7627ca6d7
xen-4.2-testing changeset: 25899:dbb1872bbb97
changeset: 23399:bfe09091c0c5 user: Joe Jin <[email protected]> date: Tue Nov 13 18:11:09 2012 +0000 files: tools/python/xen/xend/XendStateStore.py
description:
tools: xend: fix wrong condition check for xml file
In commit e8d40584, it intended to check xml file size and when empty will return, the condition should be "if os.path.getsize(xml_path) == 0" rather then "if not os.path.getsize(xml_path) == 0".
xen-unstable changeset: 26088:dd64a1bdbe3a
xen-4.2-testing changeset: 25905:82b61b99d15d
changeset: 23400:0f01a15628da user: Olaf Hering <[email protected]> date: Tue Nov 13 18:13:11 2012 +0000 files: tools/python/xen/util/vscsi_util.py
description:
xend/pvscsi: fix passing of SCSI control LUNs
Currently pvscsi can not pass SCSI devices that have just a scsi_generic node. In the following example sg3 is a control LUN for the disk sdd. But vscsi=['4:0:2:0,0:0:0:0'] does not work because the internal 'devname' variable remains None. Later writing p-devname to xenstore fails because None is not a valid string variable.
Since devname is used for just informational purpose use sg also as devname.
carron:~ $ lsscsi -g
[0:0:0:0] disk ATA FK0032CAAZP HPF2 /dev/sda /dev/sg0 [4:0:0:0] disk HP P2000G3 FC/iSCSI T100 /dev/sdb /dev/sg1 [4:0:1:0] disk HP P2000G3 FC/iSCSI T100 /dev/sdc /dev/sg2 [4:0:2:0] storage HP HSV400 0950 - /dev/sg3 [4:0:2:1] disk HP HSV400 0950 /dev/sdd /dev/sg4 [4:0:3:0] storage HP HSV400 0950 - /dev/sg5 [4:0:3:1] disk HP HSV400 0950 /dev/sde /dev/sg6
xen-unstable changeset: 26008:eecb528583d7
xen-4.2-testing changeset: 25913:16ced2f387b9
changeset: 23401:c14e37335775 user: Olaf Hering <[email protected]> date: Tue Nov 13 18:13:17 2012 +0000 files: tools/python/xen/util/vscsi_util.py
description:
xend/pvscsi: fix usage of persistant device names for SCSI devices
Currently the callers of vscsi_get_scsidevices() do not pass a mask string. This will call "lsscsi -g '[]'", which causes a lsscsi syntax error. As a result the sysfs parser _vscsi_get_scsidevices() is used. But this parser is broken and the specified names in the config file are not found.
Using a mask '*' if no mask was given will call lsscsi correctly and the following config is parsed correctly:
vscsi=[
'/dev/sg3, 0:0:0:0', '/dev/disk/by-id/wwn-0x600508b4000cf1c30000800000410000, 0:0:0:1'
]
xen-unstable changeset: 26009:2dbfa4d2e107
xen-4.2-testing changeset: 25914:b8916af165b9
changeset: 23402:1104badf4151 tag: tip user: Olaf Hering <[email protected]> date: Tue Nov 13 18:13:24 2012 +0000 files: tools/python/xen/util/vscsi_util.py
description:
xend/pvscsi: update sysfs parser for Linux 3.0
The sysfs parser for /sys/bus/scsi/devices understands only the layout of kernel version 2.6.16. This looks as follows:
/sys/bus/scsi/devices/1:0:0:0/block:sda is a symlink to /sys/block/sda/ /sys/bus/scsi/devices/1:0:0:0/scsi_generic:sg1 is a symlink to /sys/class/scsi_generic/sg1
Both directories contain a 'dev' file with the major:minor information. This patch updates the used regex strings to match also the colon to make it more robust against possible future changes.
In kernel version 3.0 the layout changed:/sys/bus/scsi/devices/ contains now additional symlinks to directories such as host1 and target1:0:0. This patch ignores these as they do not point to the desired scsi devices. They just clutter the devices array.
The directory layout in '1:0:0:0' changed as well, the 'type:name' notation was replaced with 'type/name' directories:
/sys/bus/scsi/devices/1:0:0:0/block/sda/
/sys/bus/scsi/devices/1:0:0:0/scsi_generic/sg1/
Both directories contain a 'dev' file with the major:minor information. This patch adds additional code to walk the subdir to find the 'dev' file to make sure the given subdirectory is really the kernel name.
In addition this patch makes sure devname is not None.
xen-unstable changeset: 26010:cff10030c6ea
xen-4.2-testing changeset: 25915:839e5d95d483
commit b36c42985575cd6d761d39e5770e57a1f52832ae
Author: Ian Jackson <[email protected]> Date: Tue Nov 13 18:25:17 2012 +0000
mapcache: Fix invalidate if memory requested was not bucket aligned
When memory is mapped in qemu_map_cache with lock != 0 a reverse mapping is created pointing to the virtual address of location requested. The cached mapped entry is saved in last_address_vaddr with the memory location of the base virtual address (without bucket offset). However when this entry is invalidated the virtual address saved in the reverse mapping is used. This cause that the mapping is freed but the last_address_vaddr is not reset.
Conflicts:
hw/xen_machine_fv.c
commit bdbf5a6aba74658b95756c8d7d26d664fbd9c83d
Author: Stefano Stabellini <[email protected]> Date: Thu Aug 30 16:11:32 2012 +0100
qemu-xen-trad: fix msi_translate with PV event delivery
When switching from msitranslate to straight msi we need to make sure that we respect PV event delivery for the msi if the guest asked for it:
- completely disable MSI on the device in pt_disable_msi_translate;
- then enable MSI again (pt_msi_setup), mapping the correct pirq to it.
commit dbd79be2d3d47c6a73f6292ffb8de9860cd80ad8
Author: Ian Jackson <[email protected]> Date: Tue Aug 14 15:57:49 2012 +0100
Revert "qemu-xen-traditional: use O_DIRECT to open disk images for IDE"
This reverts commit 1307e42a4b3c1102d75401bc0cffb4eb6c9b7a38.
In fact after a lengthy discussion, we came up with the conclusion that WRITEBACK is OK for IDE.
See: http://marc.info/?l=xen-devel&m=133311527009773
Therefore revert this which was committed in error. (cherry picked from commit effd5676225761abdab90becac519716515c3be4)
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
I have backported a number of the tools fixes from 4.2 to 4.1.
Thanks a lot! I see this also included some qemu changes, so I imply that we're then all set for RC1 on both trees as soon as the patches for the security problems published yesterday went in (and got a push) - are you planning to do this, or should someone else (e.g. me) step in?
Jan
Jan Beulich writes ("Re: Tools backports to 4.1"):
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
I have backported a number of the tools fixes from 4.2 to 4.1.
Thanks a lot! I see this also included some qemu changes, so I imply that we're then all set for RC1 on both trees as soon as the patches for the security problems published yesterday went in (and got a push) - are you planning to do this, or should someone else (e.g. me) step in?
Yes, I think we can do RC1 as soon as we have 25922:8ca6372315f8.
When we get a test push which includes the QEMU_TAG I will tag the qemu trees.
Ian.
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
Jan Beulich writes ("Re: Tools backports to 4.1"):
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line · Ian Jackson
I have backported a number of the tools fixes from 4.2 to 4.1.
Thanks a lot! I see this also included some qemu changes, so I imply that we're then all set for RC1 on both trees as soon as the patches for the security problems published yesterday went in (and got a push) - are you planning to do this, or should someone else (e.g. me) step in?
Quoted 4 lines
Yes, I think we can do RC1 as soon as we have 25922:8ca6372315f8.
When we get a test push which includes the
QEMU_TAGI will tag the qemu trees.
Didn't that happen already? Or do you mean a push on the qemu tree?
Jan
Jan Beulich writes ("Re: Tools backports to 4.1"):
Quoted 6 lines · Ian Jackson
Quoted 2 lines
When we get a test push which includes the
QEMU_TAGI will tag the qemu trees.Didn't that happen already? Or do you mean a push on the qemu tree?
I've just double-checked and you're right. I thought we were waiting for 4.2 but there have been no backported commits to qemu-xen-4.2-testing.git since 4.2.0.
I will tag the qemu trees and get back to you.
Ian.