Xen 4.1 PVOPS 3.0.0-RC1 VGA Console
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
Am 04.06.2011 06:41, schrieb mike.a.collins:
Quoted 4 lines
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow the progress with regard to this issue.
The problem (blank screen) pops up regularly in the xen-user list too. Also the wiki page about pvops dom0 doesn't mention this issue. (If I could edit that page, I would add the necessary information to it. Unfortunatly, I don't really know what the problem is, and what the solution might be.)
Regards,
Sven
Quoted 12 lines · Sven Köhler
Am 04.06.2011 06:41, schrieb mike.a.collins:
Quoted 4 lines
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow the progress with regard to this issue.
Quoted 6 lines
The problem (blank screen) pops up regularly in the xen-user list too. Also the wiki page about pvops dom0 doesn't mention this issue. (If I could edit that page, I would add the necessary information to it. Unfortunatly, I don't really know what the problem is, and what the solution might be.)
Hey. Just create yourself a login to xen wiki,
and let us know the login name so we can give you editing permissions!
-- Pasi
Quoted 6 lines · Sven Köhler
Am 04.06.2011 06:41, schrieb mike.a.collins:
Quoted 4 lines
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
Quoted 6 lines
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow the progress with regard to this issue.
From what I've been able to gather there has been a change in the way that Xen handles the host's hardware, in particular the console hardware. It was not sending that to the bootloader correctly, or at all, and so the kernel didn't see that there was a console. That is what I can tell, just my uninformed opinion. Konrad has a patch that fixes the way that Xen reports the console hardware to the kernel, but it looks as if it didn't make it into the 3.0-rc1 release. I just went to git.kernel.org and pulled up Konrad's xen repository and selected the stable/2.6.39.x and looked for the commit entitled "xen: allow enable use of VGA console on dom0" which was on May 31st. I clicked on the commitdiff page and then downloaded the patch from the link at the top of the generated page. I used that patch to enable the VGA console on my dom0, worked like a champ, but I don't know if there is an issue that kept it from being commited in the mainline. I hope this helped. Mike
Quoted 15 lines
The problem (blank screen) pops up regularly in the xen-user list too. Also the wiki page about pvops dom0 doesn't mention this issue. (If I could edit that page, I would add the necessary information to it. Unfortunatly, I don't really know what the problem is, and what the solution might be.)
Regards,
Sven_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Sven Köhler
Am 04.06.2011 06:41, schrieb mike.a.collins:
Quoted 4 lines
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
Quoted 6 lines
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow the progress with regard to this issue.
From what I've been able to gather there has been a change in the way that Xen handles the host's hardware, in particular the console hardware. It was not sending that to the bootloader correctly, or at all, and so the kernel didn't see that there was a console. That is what I can tell, just my uninformed opinion. Konrad has a patch that fixes the way that Xen reports the console hardware to the kernel, but it looks as if it didn't make it into the 3.0-rc1 release. I just went to git.kernel.org and pulled up Konrad's xen repository and selected the stable/2.6.39.x and looked for the commit entitled "xen:
allow enable use of VGA console on dom0" which was on May 31st. I clicked on the commitdiff page and then downloaded the patch from the link at the top of the generated page. I used that patch to enable the VGA console on my dom0, worked like a champ, but I don't know if there is an issue that kept it from being commited in the mainline. I hope this helped.
Mike
Quoted 15 lines
The problem (blank screen) pops up regularly in the xen-user list too. Also the wiki page about pvops dom0 doesn't mention this issue. (If I could edit that page, I would add the necessary information to it. Unfortunatly, I don't really know what the problem is, and what the solution might be.)
Regards,
Sven_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Am 04.06.2011 14:32, schrieb mike.a.collins:
Quoted 14 lines
Quoted 6 lines · Sven Köhler
Am 04.06.2011 06:41, schrieb mike.a.collins:
Quoted 4 lines
I've noticed that the VGA console is still not fixed in the 3.0.0 kernel when booting with xen dom0. Is there a patch like with 2.6.39? I could probably take what I used with the 2.6.39, but I was wondering if there was a reason for not including it. Thanks.
Quoted 6 lines
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow the progress with regard to this issue.
Quoted 15 lines
From what I've been able to gather there has been a change in the way that Xen handles the host's hardware, in particular the console hardware. It was not sending that to the bootloader correctly, or at all, and so the kernel didn't see that there was a console. That is what I can tell, just my uninformed opinion. Konrad has a patch that fixes the way that Xen reports the console hardware to the kernel, but it looks as if it didn't make it into the 3.0-rc1 release. I just went to git.kernel.org and pulled up Konrad's xen repository and selected the stable/2.6.39.x and looked for the commit entitled "xen:
allow enable use of VGA console on dom0" which was on May 31st. I clicked on the commitdiff page and then downloaded the patch from the link at the top of the generated page. I used that patch to enable the VGA console on my dom0, worked like a champ, but I don't know if there is an issue that kept it from being commited in the mainline. I hope this helped.
Thank you for your insight.
I think, this is the commit you're talking about:
http://git.kernel.org/?p=linux/kernel/git/konrad/xen.git;a=commit;h=09e5e7caf4eac83c010ec3d209cc3dfbe1444ae0
I will try to apply it to 3.0-rc1. If successful, I'll talk to Pasi in order to change the Wiki page.
Regards,
Sven
Am 04.06.2011 15:01, schrieb Sven Köhler:
Quoted 1 line
I will try to apply it to 3.0-rc1.
Didn't apply to 3.0-rc1. Mainly an issue in enlighten.c, but it was easy to fix, I believe. Patch is attached. Not sure whether it's 100% correct, but kernel booted fine, with working VGA. (Didn't try anything fancy like X11, since it's a server machine.)
Regards,
Sven
usr/src/linux-3.0-rc1/arch//x86/xen/Makefile renamed from arch//x86/xen/Makefile +1 -0
@@ -18,5 +18,6 @@ obj-$(CONFIG_SMP) += smp.o obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o obj-$(CONFIG_XEN_DEBUG_FS) += debugfs.o +obj-$(CONFIG_XEN_DOM0) += vga.o obj-$(CONFIG_SWIOTLB_XEN) += pci-swiotlb-xen.o
usr/src/linux-3.0-rc1/arch//x86/xen/enlighten.c renamed from arch//x86/xen/enlighten.c +10 -0
@@ -1240,7 +1240,17 @@add_preferred_console ("hvc" ,0 ,NULL );if (pci_xen) x86_init.pci.arch_init = pci_xen_init; + + boot_params.screen_info.orig_video_isVGA =0 ; }else { +const struct dom0_vga_console_info *info = + (void *)((char *)xen_start_info + + xen_start_info->console.dom0.info_off); + +xen_init_vga (info, xen_start_info->console.dom0.info_size); + xen_start_info->console.domU.mfn =0 ; + xen_start_info->console.domU.evtchn =0 ; +/* Make sure ACS will be enabled */ pci_request_acs (); }
usr/src/linux-3.0-rc1/arch//x86/xen/vga.c renamed from arch//x86/xen/vga.c +67 -0
67 lines not on this page · raw message
usr/src/linux-3.0-rc1/arch//x86/xen/xen-ops.h renamed from arch//x86/xen/xen-ops.h +11 -0
@@ -88,6 +88,17 @@ }#endif +struct dom0_vga_console_info ; + +#ifdef CONFIG_XEN_DOM0 +void xen_init_vga (const struct dom0_vga_console_info *,size_t size); +#else +static inline void xen_init_vga (const struct dom0_vga_console_info *info, +size_t size) +{ +} +#endif +/* Declare an asm function, along with symbols needed to make it inlineable */ #define DECL_ASM (ret, name, ...) \
usr/src/linux-3.0-rc1/include//xen/interface/xen.h renamed from include//xen/interface/xen.h +39 -0
@@ -450,6 +450,45 @@int8_t cmd_line[MAX_GUEST_CMDLINE ]; }; +struct dom0_vga_console_info { +uint8_t video_type;/* DOM0_VGA_CONSOLE_??? */ +#define XEN_VGATYPE_TEXT_MODE_3 0x03 +#define XEN_VGATYPE_VESA_LFB 0x23 + +union { +struct { +/* Font height, in pixels. */ +uint16_t font_height; +/* Cursor location (column, row). */ +uint16_t cursor_x, cursor_y; +/* Number of rows and columns (dimensions in characters). */ +uint16_t rows, columns; + } text_mode_3; + +struct { +/* Width and height, in pixels. */ +uint16_t width, height; +/* Bytes per scan line. */ +uint16_t bytes_per_line; +/* Bits per pixel. */ +uint16_t bits_per_pixel; +/* LFB physical address, and size (in units of 64kB). */ +uint32_t lfb_base; +uint32_t lfb_size; +/* RGB mask offsets and sizes, as defined by VBE 1.2+ */ +uint8_t red_pos, red_size; +uint8_t green_pos, green_size; +uint8_t blue_pos, blue_size; +uint8_t rsvd_pos, rsvd_size; + +/* VESA capabilities (offset 0xa, VESA command 0x4f00). */ +uint32_t gbl_caps; +/* Mode attributes (offset 0x0, VESA command 0x4f01). */ +uint16_t mode_attrs; + } vesa_lfb; + } u; +}; +/* These flags are passed in the 'flags' field of start_info_t. */ #define SIF_PRIVILEGED (1<<0)/* Is the domain privileged? */ #define SIF_INITDOMAIN (1<<1)/* Is this the initial control domain? */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
usr/src/linux-3.0-rc1/include//xen/interface/xen.h line 456
Quoted 5 lines · Sven Köhler
usr/src/linux-3.0-rc1/include//xen/interface/xen.h renamed from include//xen/interface/xen.h +4
-0+struct dom0_vga_console_info { +uint8_t video_type;/* DOM0_VGA_CONSOLE_??? */ +#define XEN_VGATYPE_TEXT_MODE_3 0x03 +#define XEN_VGATYPE_VESA_LFB 0x23
The comment doesn't match the #define's here.
Ian.
Quoted 7 lines
Quoted 7 lines
What have you been using for 2.6.39?
Also, I'd love to hear an explanation why it is necessary, or what I have to look out for on the mailing list or the LKML in order to follow
the progress with regard to this issue.
Quoted 15 lines
From what I've been able to gather there has been a change in the way that Xen handles the host's hardware, in particular the console hardware. It was not sending that to the bootloader correctly, or at all, and so the kernel didn't see that there was a console. That is what I can tell, just my uninformed opinion. Konrad has a patch that fixes the way that Xen reports the console hardware to the kernel, but it looks as if it didn't make it into the 3.0-rc1 release. I just went to git.kernel.org and pulled up Konrad's xen repository and selected the stable/2.6.39.x and looked for the commit entitled "xen:
allow enable use of VGA console on dom0" which was on May 31st. I clicked on the commitdiff page and then downloaded the patch from the link at the top of the generated page. I used that patch to enable the VGA console on my dom0, worked like a champ, but I don't know if there is an issue that kept it from being commited in the mainline. I hope this helped.
No issues. Just missed it in the initial list of patches that went for 3.0. Will be there in 3.1, or you can use the stable/2.6.39.x tree that has that patch and some other ones.