Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Jan Beulich
On 18.10.2023 16:18, Michal Orzel wrote: > On 18/10/2023 15:29, Jan Beulich wrote: >> On 18.10.2023 12:38, Manuel Bouyer wrote: >>> Hello, >>> With Xen 4.18, a PV domain running under pvshim doesn't get console input. >>> This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid >

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 04:18:26PM +0200, Michal Orzel wrote: > Hi, > > On 18/10/2023 15:29, Jan Beulich wrote: > > > > > > On 18.10.2023 12:38, Manuel Bouyer wrote: > >> Hello, > >> With Xen 4.18, a PV domain running under pvshim doesn't get console input. > >> This is because the domain id in

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Michal Orzel
Hi, On 18/10/2023 15:29, Jan Beulich wrote: > > > On 18.10.2023 12:38, Manuel Bouyer wrote: >> Hello, >> With Xen 4.18, a PV domain running under pvshim doesn't get console input. >> This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid is >> hardwired to 0), so console_inpu

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 03:51:54PM +0200, Jan Beulich wrote: > On 18.10.2023 15:36, Manuel Bouyer wrote: > > On Wed, Oct 18, 2023 at 03:24:22PM +0200, Jan Beulich wrote: > >> On 18.10.2023 13:20, Manuel Bouyer wrote: > >>> On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: > On 18/

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Jan Beulich
On 18.10.2023 15:36, Manuel Bouyer wrote: > On Wed, Oct 18, 2023 at 03:24:22PM +0200, Jan Beulich wrote: >> On 18.10.2023 13:20, Manuel Bouyer wrote: >>> On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: On 18/10/2023 11:38 am, Manuel Bouyer wrote: > Hello, > With Xen 4.18

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 03:29:08PM +0200, Jan Beulich wrote: > On 18.10.2023 12:38, Manuel Bouyer wrote: > > Hello, > > With Xen 4.18, a PV domain running under pvshim doesn't get console input. > > This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid > > is > > hardwired to

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 03:24:22PM +0200, Jan Beulich wrote: > On 18.10.2023 13:20, Manuel Bouyer wrote: > > On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: > >> On 18/10/2023 11:38 am, Manuel Bouyer wrote: > >>> Hello, > >>> With Xen 4.18, a PV domain running under pvshim doesn't ge

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Jan Beulich
On 18.10.2023 12:38, Manuel Bouyer wrote: > Hello, > With Xen 4.18, a PV domain running under pvshim doesn't get console input. > This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid is > hardwired to 0), so console_input_domain() will never select that domain > as input. > >

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Jan Beulich
On 18.10.2023 13:20, Manuel Bouyer wrote: > On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: >> On 18/10/2023 11:38 am, Manuel Bouyer wrote: >>> Hello, >>> With Xen 4.18, a PV domain running under pvshim doesn't get console input. >>> This is because the domain id in pvshim isn't 0 (a

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Henry Wang
Hi Andrew, > On Oct 18, 2023, at 19:23, Andrew Cooper wrote: > > On 18/10/2023 12:20 pm, Manuel Bouyer wrote: >> On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: >>> On 18/10/2023 11:38 am, Manuel Bouyer wrote: Hello, With Xen 4.18, a PV domain running under pvshim doesn'

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Andrew Cooper
On 18/10/2023 12:20 pm, Manuel Bouyer wrote: > On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: >> On 18/10/2023 11:38 am, Manuel Bouyer wrote: >>> Hello, >>> With Xen 4.18, a PV domain running under pvshim doesn't get console input. >>> This is because the domain id in pvshim isn't 0

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 11:44:22AM +0100, Andrew Cooper wrote: > On 18/10/2023 11:38 am, Manuel Bouyer wrote: > > Hello, > > With Xen 4.18, a PV domain running under pvshim doesn't get console input. > > This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid > > is > > hardwire

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Andrew Cooper
On 18/10/2023 11:38 am, Manuel Bouyer wrote: > Hello, > With Xen 4.18, a PV domain running under pvshim doesn't get console input. > This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid is > hardwired to 0), so console_input_domain() will never select that domain > as input. >

Re: Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
On Wed, Oct 18, 2023 at 12:38:57PM +0200, Manuel Bouyer wrote: > Hello, > With Xen 4.18, a PV domain running under pvshim doesn't get console input. > This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid is > hardwired to 0), so console_input_domain() will never select that do

Xen 4.18 pvshim console issue (with patch)

2023-10-18 Thread Manuel Bouyer
Hello, With Xen 4.18, a PV domain running under pvshim doesn't get console input. This is because the domain id in pvshim isn't 0 (and on x86 max_init_domid is hardwired to 0), so console_input_domain() will never select that domain as input. The attached patch fixes it by translating 0 to the rea