* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 [not found] ` <CAH=9XObhC86Cg7kWdrUvPtPQEX94RcGiLH621pLbye3Q02=9ww@mail.gmail.com> @ 2012-08-20 14:02 ` Konrad Rzeszutek Wilk 2012-08-20 14:26 ` Wei Xu 2012-08-20 15:47 ` Stefano Stabellini 0 siblings, 2 replies; 7+ messages in thread From: Konrad Rzeszutek Wilk @ 2012-08-20 14:02 UTC (permalink / raw) To: Wei Xu, xen-devel, Stefano Stabellini; +Cc: xen On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote: > > Hi All, > > I'm try to set up and verify Xen console driver base on Fedora 17 and Xen > > 4.1.2 with hvm guest mode, > > i searched around and got a link, it give steps both for PV and HVM mode, > > I followed the HVM guide > > and upgraded my kernel to 3.5.0. > > > > http://www.dedoimedo.com/computers/xen-console.html > > > > After that, I can got console output with "xm console <dom_id>", but the > > console driver is not used when I tracing the driver .. I am not sure I understand: "when I tracing the driver" ? Are you referring to the PV driver? > > with "crash" utility, by examing the "console_drivers", the console driver > > is still "serial8250 console", so i wonder if I didn't > > set up it properly or something else, is there someone ever experienced > > it, thanks. Hm, it should be the hvc one. Perhaps Stefano knows.. CC-ing him and xen-devel here. > > > > crash> p *console_drivers > > $10 = { > > name = "ttyS\000\000\000\000\000\000\000\000\000\000\000", > > write = 0xffffffff8138d5a0 <serial8250_console_write>, > > read = 0, > > device = 0xffffffff8138c350 <uart_console_device>, > > unblank = 0, > > setup = 0xffffffff81d29926 <serial8250_console_setup>, > > early_setup = 0xffffffff8138ca10 <serial8250_console_early_setup>, > > flags = 22, > > index = 0, > > cflag = 0, > > data = 0xffffffff81c82640, > > next = 0x0 > > } > > > > Thanks, > > Wei > > > -- > xen mailing list > xen@lists.fedoraproject.org > https://admin.fedoraproject.org/mailman/listinfo/xen -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-20 14:02 ` [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 Konrad Rzeszutek Wilk @ 2012-08-20 14:26 ` Wei Xu 2012-08-20 15:47 ` Stefano Stabellini 1 sibling, 0 replies; 7+ messages in thread From: Wei Xu @ 2012-08-20 14:26 UTC (permalink / raw) To: Konrad Rzeszutek Wilk Cc: xen, xen-devel@lists.xensource.com, Stefano Stabellini [-- Attachment #1.1: Type: text/plain, Size: 1971 bytes --] Thanks. On Monday, August 20, 2012, Konrad Rzeszutek Wilk wrote: > On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote: > > > Hi All, > > > I'm try to set up and verify Xen console driver base on Fedora 17 and > Xen > > > 4.1.2 with hvm guest mode, > > > i searched around and got a link, it give steps both for PV and HVM > mode, > > > I followed the HVM guide > > > and upgraded my kernel to 3.5.0. > > > > > > http://www.dedoimedo.com/computers/xen-console.html > > > > > > After that, I can got console output with "xm console <dom_id>", but > the > > > console driver is not used when I tracing the driver > > .. I am not sure I understand: "when I tracing the driver" ? Are > you referring to the PV driver? No, i mean the hvm driver, I add some debug info to hvm console read/write function but it never be invoked, then I exam the "console_drivers" and found no hvm like driver was registered. > > > > with "crash" utility, by examing the "console_drivers", the console > driver > > > is still "serial8250 console", so i wonder if I didn't > > > set up it properly or something else, is there someone ever experienced > > > it, thanks. > > Hm, it should be the hvc one. Perhaps Stefano knows.. > > CC-ing him and xen-devel here. > > > > > > > crash> p *console_drivers > > > $10 = { > > > name = "ttyS\000\000\000\000\000\000\000\000\000\000\000", > > > write = 0xffffffff8138d5a0 <serial8250_console_write>, > > > read = 0, > > > device = 0xffffffff8138c350 <uart_console_device>, > > > unblank = 0, > > > setup = 0xffffffff81d29926 <serial8250_console_setup>, > > > early_setup = 0xffffffff8138ca10 <serial8250_console_early_setup>, > > > flags = 22, > > > index = 0, > > > cflag = 0, > > > data = 0xffffffff81c82640, > > > next = 0x0 > > > } > > > > > > Thanks, > > > Wei > > > > > > -- > > xen mailing list > > xen@lists.fedoraproject.org <javascript:;> > > https://admin.fedoraproject.org/mailman/listinfo/xen > > [-- Attachment #1.2: Type: text/html, Size: 3097 bytes --] [-- Attachment #2: Type: text/plain, Size: 100 bytes --] -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-20 14:02 ` [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 Konrad Rzeszutek Wilk 2012-08-20 14:26 ` Wei Xu @ 2012-08-20 15:47 ` Stefano Stabellini 2012-08-23 1:22 ` Wei Xu 1 sibling, 1 reply; 7+ messages in thread From: Stefano Stabellini @ 2012-08-20 15:47 UTC (permalink / raw) To: Konrad Rzeszutek Wilk Cc: xen, xen-devel@lists.xensource.com, Stefano Stabellini On Mon, 20 Aug 2012, Konrad Rzeszutek Wilk wrote: > On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote: > > > Hi All, > > > I'm try to set up and verify Xen console driver base on Fedora 17 and Xen > > > 4.1.2 with hvm guest mode, > > > i searched around and got a link, it give steps both for PV and HVM mode, > > > I followed the HVM guide > > > and upgraded my kernel to 3.5.0. > > > > > > http://www.dedoimedo.com/computers/xen-console.html > > > > > > After that, I can got console output with "xm console <dom_id>", but the > > > console driver is not used when I tracing the driver > > .. I am not sure I understand: "when I tracing the driver" ? Are > you referring to the PV driver? > > > > with "crash" utility, by examing the "console_drivers", the console driver > > > is still "serial8250 console", so i wonder if I didn't > > > set up it properly or something else, is there someone ever experienced > > > it, thanks. > > Hm, it should be the hvc one. Perhaps Stefano knows.. > > CC-ing him and xen-devel here. An HVM guest has access to both an emulated serial (if a serial="pty" parameter is present in the VM config file) and a PV console. However the default first console is the emulated serial with libxl (see libxl__primary_console_find), that is what you get when you execute "xl console" without -t. But if you edit inittab to spawn a getty on hvc0 and then execute "xl console -t pv" you should get access to the PV console. -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-20 15:47 ` Stefano Stabellini @ 2012-08-23 1:22 ` Wei Xu 2012-08-23 13:20 ` Stefano Stabellini 0 siblings, 1 reply; 7+ messages in thread From: Wei Xu @ 2012-08-23 1:22 UTC (permalink / raw) To: Stefano Stabellini; +Cc: xen, xen-devel@lists.xensource.com [-- Attachment #1.1: Type: text/plain, Size: 1801 bytes --] Thanks for your reply. I have tried the method but it looks still can't work, there is no "hvc0" device file in my "/dev" directory, is that the root cause? On Mon, Aug 20, 2012 at 11:47 PM, Stefano Stabellini < stefano.stabellini@eu.citrix.com> wrote: > On Mon, 20 Aug 2012, Konrad Rzeszutek Wilk wrote: > > On Mon, Aug 20, 2012 at 09:39:56PM +0800, Wei Xu wrote: > > > > Hi All, > > > > I'm try to set up and verify Xen console driver base on Fedora 17 > and Xen > > > > 4.1.2 with hvm guest mode, > > > > i searched around and got a link, it give steps both for PV and HVM > mode, > > > > I followed the HVM guide > > > > and upgraded my kernel to 3.5.0. > > > > > > > > http://www.dedoimedo.com/computers/xen-console.html > > > > > > > > After that, I can got console output with "xm console <dom_id>", but > the > > > > console driver is not used when I tracing the driver > > > > .. I am not sure I understand: "when I tracing the driver" ? Are > > you referring to the PV driver? > > > > > > with "crash" utility, by examing the "console_drivers", the console > driver > > > > is still "serial8250 console", so i wonder if I didn't > > > > set up it properly or something else, is there someone ever > experienced > > > > it, thanks. > > > > Hm, it should be the hvc one. Perhaps Stefano knows.. > > > > CC-ing him and xen-devel here. > > An HVM guest has access to both an emulated serial (if a serial="pty" > parameter is present in the VM config file) and a PV console. > However the default first console is the emulated serial with libxl (see > libxl__primary_console_find), that is what you get when you execute "xl > console" without -t. > > But if you edit inittab to spawn a getty on hvc0 and then execute "xl > console -t pv" you should get access to the PV console. > [-- Attachment #1.2: Type: text/html, Size: 2551 bytes --] [-- Attachment #2: Type: text/plain, Size: 100 bytes --] -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-23 1:22 ` Wei Xu @ 2012-08-23 13:20 ` Stefano Stabellini 2012-08-23 13:28 ` Wei Xu 2012-08-26 13:59 ` Wei Xu 0 siblings, 2 replies; 7+ messages in thread From: Stefano Stabellini @ 2012-08-23 13:20 UTC (permalink / raw) To: Wei Xu; +Cc: xen, xen-devel@lists.xensource.com, Stefano Stabellini On Thu, 23 Aug 2012, Wei Xu wrote: > Thanks for your reply. > > I have tried the method but it looks still can't work, there is no "hvc0" device file in my "/dev" directory, > is that the root cause? Reading again the previous message, it is clear that you are still using xm/xend as toolstack to create VMs. Unfortunately xend doesn't support PV consoles for HVM guests, you need to use the new xl toolstack if you'd like to use that functionality. See: http://wiki.xen.org/wiki/XL -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-23 13:20 ` Stefano Stabellini @ 2012-08-23 13:28 ` Wei Xu 2012-08-26 13:59 ` Wei Xu 1 sibling, 0 replies; 7+ messages in thread From: Wei Xu @ 2012-08-23 13:28 UTC (permalink / raw) To: Stefano Stabellini; +Cc: xen, xen-devel@lists.xensource.com [-- Attachment #1.1: Type: text/plain, Size: 608 bytes --] Thanks,i'll try it On Thursday, August 23, 2012, Stefano Stabellini wrote: > On Thu, 23 Aug 2012, Wei Xu wrote: > > Thanks for your reply. > > > > I have tried the method but it looks still can't work, there is no > "hvc0" device file in my "/dev" directory, > > is that the root cause? > > Reading again the previous message, it is clear that you are still using > xm/xend as toolstack to create VMs. Unfortunately xend doesn't support > PV consoles for HVM guests, you need to use the new xl toolstack if > you'd like to use that functionality. > > See: http://wiki.xen.org/wiki/XL > [-- Attachment #1.2: Type: text/html, Size: 871 bytes --] [-- Attachment #2: Type: text/plain, Size: 100 bytes --] -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 2012-08-23 13:20 ` Stefano Stabellini 2012-08-23 13:28 ` Wei Xu @ 2012-08-26 13:59 ` Wei Xu 1 sibling, 0 replies; 7+ messages in thread From: Wei Xu @ 2012-08-26 13:59 UTC (permalink / raw) To: Stefano Stabellini; +Cc: xen, xen-devel@lists.xensource.com [-- Attachment #1.1: Type: text/plain, Size: 608 bytes --] Thanks,i'll try it On Thursday, August 23, 2012, Stefano Stabellini wrote: > On Thu, 23 Aug 2012, Wei Xu wrote: > > Thanks for your reply. > > > > I have tried the method but it looks still can't work, there is no > "hvc0" device file in my "/dev" directory, > > is that the root cause? > > Reading again the previous message, it is clear that you are still using > xm/xend as toolstack to create VMs. Unfortunately xend doesn't support > PV consoles for HVM guests, you need to use the new xl toolstack if > you'd like to use that functionality. > > See: http://wiki.xen.org/wiki/XL > [-- Attachment #1.2: Type: text/html, Size: 871 bytes --] [-- Attachment #2: Type: text/plain, Size: 100 bytes --] -- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-08-26 13:59 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <CAH=9XOZC46yEKjoQKRgD3aEUaqvNcNF4Jcs=0HDdxJbAOpWEXw@mail.gmail.com> [not found] ` <CAH=9XObhC86Cg7kWdrUvPtPQEX94RcGiLH621pLbye3Q02=9ww@mail.gmail.com> 2012-08-20 14:02 ` [Fedora-xen] DomU console driver not works for Fedora17 in HVM mode with Xen 4.1.2 Konrad Rzeszutek Wilk 2012-08-20 14:26 ` Wei Xu 2012-08-20 15:47 ` Stefano Stabellini 2012-08-23 1:22 ` Wei Xu 2012-08-23 13:20 ` Stefano Stabellini 2012-08-23 13:28 ` Wei Xu 2012-08-26 13:59 ` Wei Xu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).