Re: [Xen-devel] booting domU guest as pvh works in xen-4.11.1 but fails in 4.12

2019-05-31 Thread YOUNG, MICHAEL A.
On Tue, 16 Apr 2019, M A Young wrote: > On Tue, 16 Apr 2019, Andrew Cooper wrote: > >> From the log: >> >> traps: modprobe[48] trap invalid opcode ip:7f797dc7bb95 sp:7ffe3099cdb8 erro >> r:0 in ld-2.29.so[7f797dc61000+21000] >> >> >> Can you disassemble ld-2.29.so and find out what that instructio

Re: [Xen-devel] booting domU guest as pvh works in xen-4.11.1 but fails in 4.12

2019-06-01 Thread YOUNG, MICHAEL A.
On Fri, 31 May 2019, Andrew Cooper wrote: >> I did a bisect on this issue, and it identified the first bad commit as >> fd32dcfe4c9a539f8e5d26ff4c5ca50ee54556b2 >> x86/vmx: Don't leak EFER.NXE into guest context > > Aah - this will be a harpertown core. > > You need e28c0ee3356f52f589bbae54e89aaed

[Xen-devel] issues with Python 3.8

2019-06-03 Thread YOUNG, MICHAEL A.
Fedora rawhide is about to to update to Python 3.8 (in beta I think) and there are two issues with compiling xen with it (see https://bugzilla.redhat.com/show_bug.cgi?id=1704807 ). It seems that in 3.8 python3-config --libs no longer includes -lpython3.8 by default which causes tools/configure

[Xen-devel] [PATCH] failing to set value to 0 in Grub2ConfigFile

2019-08-13 Thread YOUNG, MICHAEL A.
I have been looking at the pygrub code to see if it is possible to cope with grub files with BLSCFG and spotted this minor issue in GrubConf.py where the code intends to replace ${saved_entry} and ${next_entry} with 0 but doesn't succeed. Signed-off-by: Michael Young From a08eff9b1b881dc61f94

Re: [Xen-devel] [PATCH] failing to set value to 0 in Grub2ConfigFile

2019-08-13 Thread YOUNG, MICHAEL A.
On Tue, 13 Aug 2019, Andrew Cooper wrote: > On 13/08/2019 22:02, YOUNG, MICHAEL A. wrote: >> I have been looking at the pygrub code to see if it is possible to cope >> with grub files with BLSCFG and spotted this minor issue in GrubConf.py >> where the code intends to repla

[Xen-devel] [PATCH] read grubenv and set default from saved_entry or next_entry

2019-08-14 Thread YOUNG, MICHAEL A.
This patch may help your issue with the default kernel setting on Fedora 30 as it uses the setting of saved_entry or next_entry from the grubenv file to choose the default kernel which should override any setting picked up from if clauses in the grub.cfg file. I have only done limited and somew

Re: [Xen-devel] [PATCH] read grubenv and set default from saved_entry or next_entry

2019-08-14 Thread YOUNG, MICHAEL A.
On Thu, 15 Aug 2019, Michael Young wrote: > This patch may help your issue with the default kernel setting on Fedora 30 > as it uses the setting of saved_entry or next_entry from the grubenv file to > choose the default kernel which should override any setting picked up from if > clauses in the

Re: [Xen-devel] [PATCH] read grubenv and set default from saved_entry or next_entry

2019-08-15 Thread YOUNG, MICHAEL A.
On Thu, 15 Aug 2019, Steven Haigh wrote: > Having a bit of a look here > > My test system grubenv file has: > # GRUB Environment Block > saved_entry=0 > kernelopts=root=UUID=5346b4d9-885f-4673-8aff-04a16bf1971a ro > rootflags=subvol=root selinux=0 rhgb quiet > boot_success=1 > ###

[Xen-devel] python3 issues

2019-03-25 Thread YOUNG, MICHAEL A.
I have been testing the python3 changes committed to xen and found a few issues. There are a couple of ocaml python build scripts that don't work for me with python3, and I needed a few fixes to get pygrub to work, mostly due to the change from strings to bytes. I am attaching the patch I put t

Re: [Xen-devel] [PATCH 0/4] More python fixes

2019-04-01 Thread YOUNG, MICHAEL A.
On Mon, 1 Apr 2019, Wei Liu wrote: > Wei Liu (4): > pygrub: fix message in grub parser > pygrub/grub: always use integer for default entry > pygrub: decode string in Python 3 > tools/ocaml: make python scripts 2 and 3 compatible > > tools/ocaml/libs/xentoollog/genlevels.py | 5 - > tools/o

Re: [Xen-devel] [PATCH] read grubenv and set default from saved_entry or next_entry [and 1 more messages]

2019-10-06 Thread YOUNG, MICHAEL A.
On Wed, 11 Sep 2019, Ian Jackson wrote: > Steven Haigh writes ("Re: [Xen-devel] [PATCH] read grubenv and set default > from saved_entry or next_entry"): >> Just wanted to give this a quick followup... Did this end up >> progressing? > > Hi. I'm a tools maintainer and probably your best bet for a

[Xen-devel] [XEN PATCH 0/3] read grubenv and set default from it

2019-10-25 Thread YOUNG, MICHAEL A.
This series of patches is to improve the parsing by pygrub of grub configuration on Fedora. The current result of parsing is generally that the second kernel listed is set as the default due to a set default=1 line in grub.cfg which is only intended to be reached after repeated boot failures. The

[Xen-devel] [XEN PATCH 3/3] Example Fedora 31 grub.cfg and grubenv files

2019-10-25 Thread YOUNG, MICHAEL A.
This patch adds an example grub.cfg and grubenv file for reference Signed-off-by: Michael Young --- tools/pygrub/examples/fedora-31.grub.cfg | 200 +++ tools/pygrub/examples/fedora-31.grubenv | 5 + 2 files changed, 205 insertions(+) create mode 100644 tools/pygrub/exampl

[Xen-devel] [XEN PATCH 2/3] read a grubenv file if it is next to the grub.cfg file

2019-10-25 Thread YOUNG, MICHAEL A.
When a grub.cfg file is found this patch checks if there is grubenv file in the same directory as the grub.cfg file. If there is it passes the contents to parse(). Signed-off-by: Michael Young --- tools/pygrub/src/pygrub | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-

[Xen-devel] [XEN PATCH 1/3] set default kernel from grubenv next_entry or saved_entry

2019-10-25 Thread YOUNG, MICHAEL A.
This patch reads the contents of a grubenv file if available, and uses the value of next_entry (in preference) or of saved_entry to set the default kernel if there is a matching title or if it is a number. If either next_entry or saved_entry is set and neither is used then the default is set to 0.

Re: [Xen-devel] [XEN PATCH 0/3] read grubenv and set default from it

2019-10-26 Thread YOUNG, MICHAEL A.
On Sat, 26 Oct 2019, Steven Haigh wrote: > If / when pygrub is able to properly read and boot from BLS based > configurations (I'm not sure if this patchset makes pygrub BLS compatible, or > just fixes the existing issues) - but we can look at revisiting removing > these workarounds from anacon

[Xen-devel] [XEN PATCH] mismatch between pyxc_methods flags and PyObject definitions

2020-03-17 Thread YOUNG, MICHAEL A.
pygrub in xen-4.13.0 with python 3.8.2 fails with the error Traceback (most recent call last): File "/usr/libexec/xen/bin/pygrub", line 21, in import xen.lowlevel.xc SystemError: bad call flags This patch fixes mismatches in tools/python/xen/lowlevel/xc/xc.c between the flag bits defined i

Re: [Xen-devel] pygrub, installed with Python 3, doesn't boot Xen DomU-s

2019-07-22 Thread YOUNG, MICHAEL A.
On Mon, 22 Jul 2019, Andrew Cooper wrote: > On 22/07/2019 03:57, Kevin Buckley wrote: >> bash-5.0# /usr/lib/xen/bin/pygrub --debug --offset=1048576 >> --list-entries /dev/vg_xen_vbds/lv_4g_02 >> Using to parse /boot/grub/grub.cfg >> Traceback (most recent call last): >> File "/usr/lib/xen/bin/p