Skip to contentSkip to conversation

Parallel/Serial/Monitor/pyGRUB ReiserFS/others support/fixes

PATCH In review Daniel Kiper 4 participants 10 messages Dec 23, 2009 – Dec 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Parallel/Serial/Monitor/pyGRUB ReiserFS/others support/fixes

Hello,

Parallel/Serial/Monitor/pyGRUB ReiserFS/others support/fixes for xen-3.4-testing (tested with Xen Ver. 3.4.2) and xen-unstable (not tested; Sorry however I do not have spare machine to compile and test them).

Details are below:

xen-3.4-testing-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

xen-3.4-testing-parallel-serial-monitor_20091222.patch:
Add option for parallel port configuration in PV/HVM mode (PV is prepared for further development;
HVM is fully functional).
Add support for serial port (console) configuration in PV mode.
Add support for QEMU monitor configuration in PV/HVM mode (previous code did not allowed disabling of QEMU monitor or redirection QEMU monitor to other device). This patch does not change default behavior of Xen domU.

xen-3.4-testing-pygrub-reiserfs_20091222.patch:
Small but important correction for pyGRUB ReiserFS support. Without this patch pyGRUB could not read ReiserFS.

xen-3.4-testing-videoram_20091222.patch:
Remove videoram option from vfb config.
This option is only valid in main config.

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

xen-unstable-parallel-serial-monitor_20091223.patch:
Add option for parallel port configuration in PV/HVM mode (PV is prepared for further development;
HVM is fully functional).
Add support for serial port (console) configuration in PV mode.
Add support for QEMU monitor configuration in PV/HVM mode (previous code did not allowed disabling of QEMU monitor or redirection QEMU monitor to other device). This patch does not change default behavior of Xen domU.

xen-unstable-pygrub-reiserfs_20091222.patch:
Small but important correction for pyGRUB ReiserFS support. Without this patch pyGRUB could not read ReiserFS.

xen-unstable-videoram_20091222.patch:
Remove videoram option from vfb config.
This option is only valid in main config.

Those patches listed above are also available for Xen Ver. 3.4.2:
ftp://ftp.local.net-space.pl/pub/net-space/xen/xen-3.4.2/

If you have a questions please drop me a line.

Daniel Kiper

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

#1 lore raw
Quoted 3 lines · Daniel Kiper

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just don't see the win.
- Not applying to xen-unstable or xen-3.4

Quoted 1 line

xen-unstable-parallel-serial-monitor_20091223.patch:

Xend parts look good. The hvmloader parts look unnecessary (since we currently always declare LPT1 present) and dangerous (Windows guests which were installed on old Xen iirc get upset if they later boot and see LTP1 not-present in ACPI tables). There'd need to be a *good* reason for hiding LTP1 in DSDT therefore.
- Partially applied to unstable; not applied to 3.4

Quoted 3 lines

xen-unstable-pygrub-reiserfs_20091222.patch:
Small but important correction for pyGRUB ReiserFS support. Without this patch pyGRUB could not read ReiserFS.

Looks good.
- Applied to unstable and 3.4.

Quoted 3 lines

xen-unstable-videoram_20091222.patch:
Remove videoram option from vfb config.
This option is only valid in main config.

Looks good but not critical for 3.4.
- Applied to unstable; not applied to 3.4.

-- Keir

#2 lore raw
Quoted 9 lines · Keir Fraser
Quoted 4 lines

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just don't see the win.
- Not applying to xen-unstable or xen-3.4

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Ian.

#3 lore raw
Quoted 8 lines · Ian Campbell
Quoted 4 lines

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just don't see the win.
- Not applying to xen-unstable or xen-3.4

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Actually hvmloader seems to be a+x already, in all my build trees.

-- Keir

#4 lore raw
In reply to Keir Fraser

Hello,

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just don't see the win.
- Not applying to xen-unstable or xen-3.4

Quoted 5 lines
Quoted 3 lines

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Actually hvmloader seems to be a+x already, in all my build trees.

FYI:
xen-3.4.2/tools/firmware/hvmloader/hvmloader: 0755 xen-3.4.2/dist/install/usr/lib/xen/boot/hvmloader: 0644

OK, I agree that this patch break general
rule and should not be applied.

Quoted 8 lines
Quoted 1 line

xen-unstable-parallel-serial-monitor_20091223.patch:

Xend parts look good. The hvmloader parts look unnecessary (since we currently always declare LPT1 present) and dangerous (Windows guests which were installed on old Xen iirc get upset if they later boot and see LTP1 not-present in ACPI tables). There'd need to be a *good* reason for hiding LTP1 in DSDT therefore.
- Partially applied to unstable; not applied to 3.4

1) I think that parallel port configuration should be similar to serial port configuration. With that idea in mind this patch was created (and some code were copied from serial config).
2) I tested this patch with Windows Vista Business SP2 and
Finnix Ver. 92.1 as a guests and everything worked without
any problem.
3) I do not like that broken/disabled devices appear in config/device manager without any warning. In this situation disabled LPT1 port appear in Windows Device Manager without any warning. I think it is confusing for users when they see working devices in WDM and they could not use them.
4) As I mentioned earlier, all patches (including this one) do not change default behavior of Xen. It means that default QEMU configuration is not changed when parallel option is not specified in config file. If somebody would like to disable LPT1, he/she should have possibility to do that in proper way. I think it is another question that he/she is aware what is he/she doing.

That is why I think xen-unstable-parallel-serial-monitor_20091223.patch patch should be fully applied.

Daniel Kiper

#5 lore raw

Hi, Daniel,
Could you help to check your patch which is checked in as C/S 20717?
It seems that VM save/restore/migration and reboot is broken since this changeset.

Thanks!
Dongxiao

Quoted 61 lines · Daniel Kiper

Hello,

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just
don't see the win. - Not applying to xen-unstable or xen-3.4

Quoted 5 lines
Quoted 3 lines

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Actually hvmloader seems to be a+x already, in all my build trees.

FYI:
xen-3.4.2/tools/firmware/hvmloader/hvmloader: 0755 xen-3.4.2/dist/install/usr/lib/xen/boot/hvmloader: 0644

OK, I agree that this patch break general
rule and should not be applied.

Quoted 8 lines
Quoted 1 line

xen-unstable-parallel-serial-monitor_20091223.patch:

Xend parts look good. The hvmloader parts look unnecessary (since we currently always declare LPT1 present) and dangerous (Windows guests which were installed on old Xen iirc get upset if they later boot and see LTP1 not-present in ACPI tables). There'd need to be a
*good* reason for hiding LTP1 in DSDT therefore. - Partially
applied to unstable; not applied to 3.4

1) I think that parallel port configuration should be similar to serial port configuration. With that idea in mind this patch was created (and some code were copied from serial config).
2) I tested this patch with Windows Vista Business SP2 and Finnix Ver. 92.1 as a guests and everything worked without any problem.
3) I do not like that broken/disabled devices appear in config/device manager without any warning. In this situation disabled LPT1 port appear in Windows Device Manager without any warning. I think it is confusing for users when they see working devices in WDM and they could not use them.
4) As I mentioned earlier, all patches (including this one) do not change default behavior of Xen. It means that default QEMU configuration is not changed when parallel option is not specified in config file. If somebody would like to disable LPT1, he/she should have possibility to do that in proper way. I think it is another question that he/she is aware what is he/she doing.

That is why I think xen-unstable-parallel-serial-monitor_20091223.patch patch should be fully applied.

Daniel Kiper

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

#6 lore raw

Hopefully I've fixed this with c/s 20719.

-- Keir

Quoted 70 lines · Dongxiao

Hi, Daniel,
Could you help to check your patch which is checked in as C/S 20717? It seems that VM save/restore/migration and reboot is broken since this changeset.

Thanks!
Dongxiao

Quoted 61 lines · Daniel Kiper

Hello,

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just
don't see the win. - Not applying to xen-unstable or xen-3.4

Quoted 5 lines
Quoted 3 lines

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Actually hvmloader seems to be a+x already, in all my build trees.

FYI:
xen-3.4.2/tools/firmware/hvmloader/hvmloader: 0755 xen-3.4.2/dist/install/usr/lib/xen/boot/hvmloader: 0644

OK, I agree that this patch break general
rule and should not be applied.

Quoted 8 lines
Quoted 1 line

xen-unstable-parallel-serial-monitor_20091223.patch:

Xend parts look good. The hvmloader parts look unnecessary (since we currently always declare LPT1 present) and dangerous (Windows guests which were installed on old Xen iirc get upset if they later boot and see LTP1 not-present in ACPI tables). There'd need to be a
*good* reason for hiding LTP1 in DSDT therefore. - Partially
applied to unstable; not applied to 3.4

1) I think that parallel port configuration should be similar to serial port configuration. With that idea in mind this patch was created (and some code were copied from serial config).
2) I tested this patch with Windows Vista Business SP2 and Finnix Ver. 92.1 as a guests and everything worked without any problem.
3) I do not like that broken/disabled devices appear in config/device manager without any warning. In this situation disabled LPT1 port appear in Windows Device Manager without any warning. I think it is confusing for users when they see working devices in WDM and they could not use them.
4) As I mentioned earlier, all patches (including this one) do not change default behavior of Xen. It means that default QEMU configuration is not changed when parallel option is not specified in config file. If somebody would like to disable LPT1, he/she should have possibility to do that in proper way. I think it is another question that he/she is aware what is he/she doing.

That is why I think xen-unstable-parallel-serial-monitor_20091223.patch patch should be fully applied.

Daniel Kiper

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

#7 lore raw

Yeah, it's fixed.

Thanks!
Dongxiao

Quoted 75 lines · Keir Fraser

Hopefully I've fixed this with c/s 20719.

-- Keir

Quoted 69 lines · Dongxiao

Hi, Daniel,
Could you help to check your patch which is checked in as C/S 20717? It seems that VM save/restore/migration and reboot is broken since this changeset.

Thanks!
Dongxiao

Quoted 60 lines · Daniel Kiper

Hello,

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

xen-unstable-hvmloader-strip_20091222.patch:
Strip hvmloader after compile. dh_strip from debhelper does not strip binaries without execute attribute.

I don't see the point of doing this. We don't in general strip stuff we build under tools/, the extra disc space taken is trivial, and symbols can be convenient to have around. I just
don't see the win. - Not applying to xen-unstable or xen-3.4

Quoted 5 lines
Quoted 3 lines

Yes, it is the packager's responsibility to take care of this if they deem it necessary, either manually or by adding +x so that dh_strip takes care of it.

Actually hvmloader seems to be a+x already, in all my build trees.

FYI:
xen-3.4.2/tools/firmware/hvmloader/hvmloader: 0755 xen-3.4.2/dist/install/usr/lib/xen/boot/hvmloader: 0644

OK, I agree that this patch break general
rule and should not be applied.

Quoted 8 lines
Quoted 1 line

xen-unstable-parallel-serial-monitor_20091223.patch:

Xend parts look good. The hvmloader parts look unnecessary (since we currently always declare LPT1 present) and dangerous (Windows guests which were installed on old Xen iirc get upset if they later boot and see LTP1 not-present in ACPI tables). There'd need
to be a *good* reason for hiding LTP1 in DSDT therefore. -
Partially applied to unstable; not applied to 3.4

1) I think that parallel port configuration should be similar to serial port configuration. With that idea in mind this patch was created (and some code were copied from serial config).
2) I tested this patch with Windows Vista Business SP2 and Finnix Ver. 92.1 as a guests and everything worked without
any problem. 3) I do not like that broken/disabled devices appear
in config/device manager without any warning. In this situation disabled LPT1 port appear in Windows Device Manager without any warning. I think it is confusing for users when they see working
devices in WDM and they could not use them. 4) As I mentioned
earlier, all patches (including this one) do not change default behavior of Xen. It means that default QEMU configuration is not changed when parallel option is not specified in config file. If somebody would like to disable LPT1, he/she should have possibility to do that in proper way. I think it is another
question that he/she is aware what is he/she doing.

That is why I think xen-unstable-parallel-serial-monitor_20091223.patch patch should be fully applied.

Daniel Kiper

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

#8 lore raw
In reply to Keir Fraser

Hello,

Sorry for late reply however I was very busy.

Quoted 1 line · Keir Fraser

Hopefully I've fixed this with c/s 20719.

Small fix. Without this patch it is not possible to disable QEMU monitor by setting monitor option to 0 in config file.

tools/python/xen/xend/image.py +2 -0
diff -r bb34d8e578d2 -r 4dded69f097e tools/python/xen/xend/image.py
@@ -376,6 +376,8 @@ class ImageHandler:
                 ret = ret + ['-monitor', vmConfig['platform'].get('monitor_path')]
             else:
                 ret = ret + ['-monitor', 'vc']
+        else:
+            ret = ret + ['-monitor', 'null']
 
         return ret
 

Happy New Year,

Daniel Kiper

# HG changeset patch
# User [email protected] # Date 1262212817 -3600
# Node ID 4dded69f097e9eb2e3bf174b3ced17c012fde4f0 # Parent bb34d8e578d204d4fd59f4c6a3a20ad16e862a15 Without this patch it is not possible to disable QEMU monitor by setting monitor option to 0 in config file.

tools/python/xen/xend/image.py +2 -0
diff -r bb34d8e578d2 -r 4dded69f097e tools/python/xen/xend/image.py
@@ -376,6 +376,8 @@ class ImageHandler:
                 ret = ret + ['-monitor', vmConfig['platform'].get('monitor_path')]
             else:
                 ret = ret + ['-monitor', 'vc']
+        else:
+            ret = ret + ['-monitor', 'null']
 
         return ret
 

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

#9 lore raw
In reply to Daniel Kiper
Quoted 2 lines · Daniel Kiper

That is why I think xen-unstable-parallel-serial-monitor_20091223.patch patch should be fully applied.

Well, let's give it a go.

-- Keir