Re: [XTF 4/4] setup: Setup PV console for HVM guests on xen >4.2

2020-04-20 Thread Andrew Cooper
On 16/04/2020 12:51, Wieczorkiewicz, Pawel wrote: >> On 16. Apr 2020, at 12:36, Andrew Cooper wrote: >> >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you can confirm the sender and know >> the content is safe. >> >> >> >> On

Re: [XTF 4/4] setup: Setup PV console for HVM guests on xen >4.2

2020-04-16 Thread Wieczorkiewicz, Pawel
> On 16. Apr 2020, at 12:36, Andrew Cooper wrote: > > CAUTION: This email originated from outside of the organization. Do not click > links or open attachments unless you can confirm the sender and know the > content is safe. > > > > On 16/04/2020 10:41, Pawel Wieczorkiewicz wrote: >> @@ -2

Re: [XTF 4/4] setup: Setup PV console for HVM guests on xen >4.2

2020-04-16 Thread Andrew Cooper
On 16/04/2020 10:41, Pawel Wieczorkiewicz wrote: > @@ -272,9 +274,23 @@ void arch_setup(void) > > init_hypercalls(); > > -if ( !is_initdomain() ) > +xen_version = hypercall_xen_version(XENVER_version, NULL); > +if ( version ) > +*version = xen_version; > + > +/* > +

[XTF 4/4] setup: Setup PV console for HVM guests on xen >4.2

2020-04-16 Thread Pawel Wieczorkiewicz
From: Paul Semel Xen 4.2 requires a workaround that does not setup PV console for HVM guests. However, newer Xen versions do not have that limitation and should always have the PV console setup. In arch_setup() detects Xen version by issuing xen_version hypercall and optionally passes the versio