All of lore.kernel.org
 help / color / mirror / Atom feed
* xm/xl shutdown does not work with HVM guest
@ 2014-02-19 18:50 Saurabh Mishra
  2014-02-19 18:56 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-19 18:50 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 793 bytes --]

Hi,

I'd like to know what should be configured in the HVM guest such that it
accepts 'xm/xl shutdown' graceful shutdown signal.

'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on HVM)
however whenever I disable xen_platform_pci=0, it does not work.

I also tried 'xl/xm trigger <vm> power' and this too does not work if
xen_platform_pci=0 is set. We do have lot of PCI pass-through devices.

Our Xen cfg file looks like this :-

# HVM specific
kernel = "hvmloader"
builder = "hvm"
device_model = "qemu-dm"

# Enable ACPI support
acpi = 1

# Enable serial console
serial = "pty"

# Enable VNC
vnc = 1
vnclisten = "0.0.0.0"

pci_msitranslate = 0

xen_platform_pci = 1

# Default behavior for following events
on_reboot = "destroy"


I'm use SLES SuSE 11 SP3.

Thanks,
/Saurabh

[-- Attachment #1.2: Type: text/html, Size: 1358 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 18:50 xm/xl shutdown does not work with HVM guest Saurabh Mishra
@ 2014-02-19 18:56 ` Konrad Rzeszutek Wilk
  2014-02-19 19:02   ` Saurabh Mishra
  2014-02-20  9:14   ` Ian Campbell
  0 siblings, 2 replies; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-19 18:56 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: xen-devel

On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> Hi,
> 
> I'd like to know what should be configured in the HVM guest such that it
> accepts 'xm/xl shutdown' graceful shutdown signal.
> 
> 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on HVM)
> however whenever I disable xen_platform_pci=0, it does not work.

Right. That is expected.

> 
> I also tried 'xl/xm trigger <vm> power' and this too does not work if
> xen_platform_pci=0 is set. We do have lot of PCI pass-through devices.

Oh, that looks to be a bug then.

> 
> Our Xen cfg file looks like this :-
> 
> # HVM specific
> kernel = "hvmloader"
> builder = "hvm"
> device_model = "qemu-dm"
> 
> # Enable ACPI support
> acpi = 1
> 
> # Enable serial console
> serial = "pty"
> 
> # Enable VNC
> vnc = 1
> vnclisten = "0.0.0.0"
> 
> pci_msitranslate = 0
> 
> xen_platform_pci = 1
> 
> # Default behavior for following events
> on_reboot = "destroy"
> 
> 
> I'm use SLES SuSE 11 SP3.

As you initial domain or your guests? If it is with SLES does the issue
show up if you use the latest version of Xen?
> 
> Thanks,
> /Saurabh

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 18:56 ` Konrad Rzeszutek Wilk
@ 2014-02-19 19:02   ` Saurabh Mishra
  2014-02-19 19:24     ` Konrad Rzeszutek Wilk
  2014-02-20  9:15     ` Ian Campbell
  2014-02-20  9:14   ` Ian Campbell
  1 sibling, 2 replies; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-19 19:02 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1906 bytes --]

> I'm use SLES SuSE 11 SP3.
> As you initial domain or your guests? If it is with SLES does the issue
> show up if you use the latest version of Xen?

We have two VMs. One is a WindRiver based VM and the other one a SLES SuSE
11 SP2 VM.

SuSE 11 SP2 VM shutdown properly with xen_platform_pci=0 however WR one
does not and hence the question what config or driver do I need to enable
in WR HVM guest such that it accepts 'xl/xm trigger <vm> power'?

Thanks,
/Saurabh


On Wed, Feb 19, 2014 at 10:56 AM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > Hi,
> >
> > I'd like to know what should be configured in the HVM guest such that it
> > accepts 'xm/xl shutdown' graceful shutdown signal.
> >
> > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on HVM)
> > however whenever I disable xen_platform_pci=0, it does not work.
>
> Right. That is expected.
>
> >
> > I also tried 'xl/xm trigger <vm> power' and this too does not work if
> > xen_platform_pci=0 is set. We do have lot of PCI pass-through devices.
>
> Oh, that looks to be a bug then.
>
> >
> > Our Xen cfg file looks like this :-
> >
> > # HVM specific
> > kernel = "hvmloader"
> > builder = "hvm"
> > device_model = "qemu-dm"
> >
> > # Enable ACPI support
> > acpi = 1
> >
> > # Enable serial console
> > serial = "pty"
> >
> > # Enable VNC
> > vnc = 1
> > vnclisten = "0.0.0.0"
> >
> > pci_msitranslate = 0
> >
> > xen_platform_pci = 1
> >
> > # Default behavior for following events
> > on_reboot = "destroy"
> >
> >
> > I'm use SLES SuSE 11 SP3.
>
> As you initial domain or your guests? If it is with SLES does the issue
> show up if you use the latest version of Xen?
> >
> > Thanks,
> > /Saurabh
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>

[-- Attachment #1.2: Type: text/html, Size: 3407 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 19:02   ` Saurabh Mishra
@ 2014-02-19 19:24     ` Konrad Rzeszutek Wilk
  2014-02-19 19:33       ` Saurabh Mishra
  2014-02-20  9:15     ` Ian Campbell
  1 sibling, 1 reply; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-19 19:24 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: xen-devel

On Wed, Feb 19, 2014 at 11:02:25AM -0800, Saurabh Mishra wrote:
> > I'm use SLES SuSE 11 SP3.
> > As you initial domain or your guests? If it is with SLES does the issue
> > show up if you use the latest version of Xen?
> 
> We have two VMs. One is a WindRiver based VM and the other one a SLES SuSE
> 11 SP2 VM.
> 
> SuSE 11 SP2 VM shutdown properly with xen_platform_pci=0 however WR one
> does not and hence the question what config or driver do I need to enable
> in WR HVM guest such that it accepts 'xl/xm trigger <vm> power'?

Lets step back a minute. What is the version of Xen you are running.

> 
> Thanks,
> /Saurabh
> 
> 
> On Wed, Feb 19, 2014 at 10:56 AM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > > Hi,
> > >
> > > I'd like to know what should be configured in the HVM guest such that it
> > > accepts 'xm/xl shutdown' graceful shutdown signal.
> > >
> > > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on HVM)
> > > however whenever I disable xen_platform_pci=0, it does not work.
> >
> > Right. That is expected.
> >
> > >
> > > I also tried 'xl/xm trigger <vm> power' and this too does not work if
> > > xen_platform_pci=0 is set. We do have lot of PCI pass-through devices.
> >
> > Oh, that looks to be a bug then.
> >
> > >
> > > Our Xen cfg file looks like this :-
> > >
> > > # HVM specific
> > > kernel = "hvmloader"
> > > builder = "hvm"
> > > device_model = "qemu-dm"
> > >
> > > # Enable ACPI support
> > > acpi = 1
> > >
> > > # Enable serial console
> > > serial = "pty"
> > >
> > > # Enable VNC
> > > vnc = 1
> > > vnclisten = "0.0.0.0"
> > >
> > > pci_msitranslate = 0
> > >
> > > xen_platform_pci = 1
> > >
> > > # Default behavior for following events
> > > on_reboot = "destroy"
> > >
> > >
> > > I'm use SLES SuSE 11 SP3.
> >
> > As you initial domain or your guests? If it is with SLES does the issue
> > show up if you use the latest version of Xen?
> > >
> > > Thanks,
> > > /Saurabh
> >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xen.org
> > > http://lists.xen.org/xen-devel
> >
> >

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 19:24     ` Konrad Rzeszutek Wilk
@ 2014-02-19 19:33       ` Saurabh Mishra
  2014-02-19 19:52         ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-19 19:33 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2539 bytes --]

Hi Konrad --

I'm using  Xen 4.2.2

xentop - 11:31:13   Xen 4.2.2_06-0.7.17.62

Thanks,
/Saurabh

On Wed, Feb 19, 2014 at 11:24 AM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Wed, Feb 19, 2014 at 11:02:25AM -0800, Saurabh Mishra wrote:
> > > I'm use SLES SuSE 11 SP3.
> > > As you initial domain or your guests? If it is with SLES does the issue
> > > show up if you use the latest version of Xen?
> >
> > We have two VMs. One is a WindRiver based VM and the other one a SLES
> SuSE
> > 11 SP2 VM.
> >
> > SuSE 11 SP2 VM shutdown properly with xen_platform_pci=0 however WR one
> > does not and hence the question what config or driver do I need to enable
> > in WR HVM guest such that it accepts 'xl/xm trigger <vm> power'?
>
> Lets step back a minute. What is the version of Xen you are running.
>
> >
> > Thanks,
> > /Saurabh
> >
> >
> > On Wed, Feb 19, 2014 at 10:56 AM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > > > Hi,
> > > >
> > > > I'd like to know what should be configured in the HVM guest such
> that it
> > > > accepts 'xm/xl shutdown' graceful shutdown signal.
> > > >
> > > > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on
> HVM)
> > > > however whenever I disable xen_platform_pci=0, it does not work.
> > >
> > > Right. That is expected.
> > >
> > > >
> > > > I also tried 'xl/xm trigger <vm> power' and this too does not work if
> > > > xen_platform_pci=0 is set. We do have lot of PCI pass-through
> devices.
> > >
> > > Oh, that looks to be a bug then.
> > >
> > > >
> > > > Our Xen cfg file looks like this :-
> > > >
> > > > # HVM specific
> > > > kernel = "hvmloader"
> > > > builder = "hvm"
> > > > device_model = "qemu-dm"
> > > >
> > > > # Enable ACPI support
> > > > acpi = 1
> > > >
> > > > # Enable serial console
> > > > serial = "pty"
> > > >
> > > > # Enable VNC
> > > > vnc = 1
> > > > vnclisten = "0.0.0.0"
> > > >
> > > > pci_msitranslate = 0
> > > >
> > > > xen_platform_pci = 1
> > > >
> > > > # Default behavior for following events
> > > > on_reboot = "destroy"
> > > >
> > > >
> > > > I'm use SLES SuSE 11 SP3.
> > >
> > > As you initial domain or your guests? If it is with SLES does the issue
> > > show up if you use the latest version of Xen?
> > > >
> > > > Thanks,
> > > > /Saurabh
> > >
> > > > _______________________________________________
> > > > Xen-devel mailing list
> > > > Xen-devel@lists.xen.org
> > > > http://lists.xen.org/xen-devel
> > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 4045 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 19:33       ` Saurabh Mishra
@ 2014-02-19 19:52         ` Konrad Rzeszutek Wilk
  2014-02-19 19:55           ` Saurabh Mishra
  0 siblings, 1 reply; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-19 19:52 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: xen-devel

On Wed, Feb 19, 2014 at 11:33:40AM -0800, Saurabh Mishra wrote:
> Hi Konrad --
> 
> I'm using  Xen 4.2.2
> 
> xentop - 11:31:13   Xen 4.2.2_06-0.7.17.62

Oh, please don't top-post and please do use the latest version of Xen.

As I mentioned earlier - you might be hitting a bug in 'xl'. Hence
please use the latest version so that we can vet whether indeed this
is a bug when doing 'xl trigger'.


> 
> Thanks,
> /Saurabh
> 
> On Wed, Feb 19, 2014 at 11:24 AM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Wed, Feb 19, 2014 at 11:02:25AM -0800, Saurabh Mishra wrote:
> > > > I'm use SLES SuSE 11 SP3.
> > > > As you initial domain or your guests? If it is with SLES does the issue
> > > > show up if you use the latest version of Xen?
> > >
> > > We have two VMs. One is a WindRiver based VM and the other one a SLES
> > SuSE
> > > 11 SP2 VM.
> > >
> > > SuSE 11 SP2 VM shutdown properly with xen_platform_pci=0 however WR one
> > > does not and hence the question what config or driver do I need to enable
> > > in WR HVM guest such that it accepts 'xl/xm trigger <vm> power'?
> >
> > Lets step back a minute. What is the version of Xen you are running.
> >
> > >
> > > Thanks,
> > > /Saurabh
> > >
> > >
> > > On Wed, Feb 19, 2014 at 10:56 AM, Konrad Rzeszutek Wilk <
> > > konrad.wilk@oracle.com> wrote:
> > >
> > > > On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > > > > Hi,
> > > > >
> > > > > I'd like to know what should be configured in the HVM guest such
> > that it
> > > > > accepts 'xm/xl shutdown' graceful shutdown signal.
> > > > >
> > > > > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on
> > HVM)
> > > > > however whenever I disable xen_platform_pci=0, it does not work.
> > > >
> > > > Right. That is expected.
> > > >
> > > > >
> > > > > I also tried 'xl/xm trigger <vm> power' and this too does not work if
> > > > > xen_platform_pci=0 is set. We do have lot of PCI pass-through
> > devices.
> > > >
> > > > Oh, that looks to be a bug then.
> > > >
> > > > >
> > > > > Our Xen cfg file looks like this :-
> > > > >
> > > > > # HVM specific
> > > > > kernel = "hvmloader"
> > > > > builder = "hvm"
> > > > > device_model = "qemu-dm"
> > > > >
> > > > > # Enable ACPI support
> > > > > acpi = 1
> > > > >
> > > > > # Enable serial console
> > > > > serial = "pty"
> > > > >
> > > > > # Enable VNC
> > > > > vnc = 1
> > > > > vnclisten = "0.0.0.0"
> > > > >
> > > > > pci_msitranslate = 0
> > > > >
> > > > > xen_platform_pci = 1
> > > > >
> > > > > # Default behavior for following events
> > > > > on_reboot = "destroy"
> > > > >
> > > > >
> > > > > I'm use SLES SuSE 11 SP3.
> > > >
> > > > As you initial domain or your guests? If it is with SLES does the issue
> > > > show up if you use the latest version of Xen?
> > > > >
> > > > > Thanks,
> > > > > /Saurabh
> > > >
> > > > > _______________________________________________
> > > > > Xen-devel mailing list
> > > > > Xen-devel@lists.xen.org
> > > > > http://lists.xen.org/xen-devel
> > > >
> > > >
> >

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 19:52         ` Konrad Rzeszutek Wilk
@ 2014-02-19 19:55           ` Saurabh Mishra
  0 siblings, 0 replies; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-19 19:55 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3588 bytes --]

Well -- We are using SuSE and don't want to build Xen ourself and SuSE's 11
SP3 pack has  Xen 4.2.2.

But what about 'xm trigger <vm> power'. That too didn't work with
xen_platform_pci=0. So I don't think it's a xl(1) bug.

Thanks,
/Saurabh


On Wed, Feb 19, 2014 at 11:52 AM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Wed, Feb 19, 2014 at 11:33:40AM -0800, Saurabh Mishra wrote:
> > Hi Konrad --
> >
> > I'm using  Xen 4.2.2
> >
> > xentop - 11:31:13   Xen 4.2.2_06-0.7.17.62
>
> Oh, please don't top-post and please do use the latest version of Xen.
>
> As I mentioned earlier - you might be hitting a bug in 'xl'. Hence
> please use the latest version so that we can vet whether indeed this
> is a bug when doing 'xl trigger'.
>
>
> >
> > Thanks,
> > /Saurabh
> >
> > On Wed, Feb 19, 2014 at 11:24 AM, Konrad Rzeszutek Wilk <
> > konrad.wilk@oracle.com> wrote:
> >
> > > On Wed, Feb 19, 2014 at 11:02:25AM -0800, Saurabh Mishra wrote:
> > > > > I'm use SLES SuSE 11 SP3.
> > > > > As you initial domain or your guests? If it is with SLES does the
> issue
> > > > > show up if you use the latest version of Xen?
> > > >
> > > > We have two VMs. One is a WindRiver based VM and the other one a SLES
> > > SuSE
> > > > 11 SP2 VM.
> > > >
> > > > SuSE 11 SP2 VM shutdown properly with xen_platform_pci=0 however WR
> one
> > > > does not and hence the question what config or driver do I need to
> enable
> > > > in WR HVM guest such that it accepts 'xl/xm trigger <vm> power'?
> > >
> > > Lets step back a minute. What is the version of Xen you are running.
> > >
> > > >
> > > > Thanks,
> > > > /Saurabh
> > > >
> > > >
> > > > On Wed, Feb 19, 2014 at 10:56 AM, Konrad Rzeszutek Wilk <
> > > > konrad.wilk@oracle.com> wrote:
> > > >
> > > > > On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I'd like to know what should be configured in the HVM guest such
> > > that it
> > > > > > accepts 'xm/xl shutdown' graceful shutdown signal.
> > > > > >
> > > > > > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV
> on
> > > HVM)
> > > > > > however whenever I disable xen_platform_pci=0, it does not work.
> > > > >
> > > > > Right. That is expected.
> > > > >
> > > > > >
> > > > > > I also tried 'xl/xm trigger <vm> power' and this too does not
> work if
> > > > > > xen_platform_pci=0 is set. We do have lot of PCI pass-through
> > > devices.
> > > > >
> > > > > Oh, that looks to be a bug then.
> > > > >
> > > > > >
> > > > > > Our Xen cfg file looks like this :-
> > > > > >
> > > > > > # HVM specific
> > > > > > kernel = "hvmloader"
> > > > > > builder = "hvm"
> > > > > > device_model = "qemu-dm"
> > > > > >
> > > > > > # Enable ACPI support
> > > > > > acpi = 1
> > > > > >
> > > > > > # Enable serial console
> > > > > > serial = "pty"
> > > > > >
> > > > > > # Enable VNC
> > > > > > vnc = 1
> > > > > > vnclisten = "0.0.0.0"
> > > > > >
> > > > > > pci_msitranslate = 0
> > > > > >
> > > > > > xen_platform_pci = 1
> > > > > >
> > > > > > # Default behavior for following events
> > > > > > on_reboot = "destroy"
> > > > > >
> > > > > >
> > > > > > I'm use SLES SuSE 11 SP3.
> > > > >
> > > > > As you initial domain or your guests? If it is with SLES does the
> issue
> > > > > show up if you use the latest version of Xen?
> > > > > >
> > > > > > Thanks,
> > > > > > /Saurabh
> > > > >
> > > > > > _______________________________________________
> > > > > > Xen-devel mailing list
> > > > > > Xen-devel@lists.xen.org
> > > > > > http://lists.xen.org/xen-devel
> > > > >
> > > > >
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 6134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 18:56 ` Konrad Rzeszutek Wilk
  2014-02-19 19:02   ` Saurabh Mishra
@ 2014-02-20  9:14   ` Ian Campbell
  1 sibling, 0 replies; 14+ messages in thread
From: Ian Campbell @ 2014-02-20  9:14 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: Saurabh Mishra, xen-devel

On Wed, 2014-02-19 at 13:56 -0500, Konrad Rzeszutek Wilk wrote:
> On Wed, Feb 19, 2014 at 10:50:12AM -0800, Saurabh Mishra wrote:
> > Hi,
> > 
> > I'd like to know what should be configured in the HVM guest such that it
> > accepts 'xm/xl shutdown' graceful shutdown signal.
> > 
> > 'xm/xl shutdown' works great when I have xen_platform_pci=1 (PV on HVM)
> > however whenever I disable xen_platform_pci=0, it does not work.
> 
> Right. That is expected.

With xl in the absence of PV drivers you can use "xl shutdown -F" to
fallback to an ACPI power event to shut things down, assuming the guest
is configured to respond to that.

Although if xl trigger power isn't working it sounds like this might not
work either.

> > I also tried 'xl/xm trigger <vm> power' and this too does not work if
> > xen_platform_pci=0 is set. We do have lot of PCI pass-through devices.
> 
> Oh, that looks to be a bug then.

Remember that this could also be a guest side bug, since it has to be
configured to respond to the event. I'd have thought that most modern
Linux distros and versions of Windows would do *something* by default
(either shutdown, reboot or in the case of Windows perhaps hibernate).

I wouldn't have expected xen_platform_pci to make any difference to the
functionality of this option, but it's not clear if that is implied by
the above.

Ian.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-19 19:02   ` Saurabh Mishra
  2014-02-19 19:24     ` Konrad Rzeszutek Wilk
@ 2014-02-20  9:15     ` Ian Campbell
  2014-02-21  0:26       ` Saurabh Mishra
  1 sibling, 1 reply; 14+ messages in thread
From: Ian Campbell @ 2014-02-20  9:15 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: xen-devel

On Wed, 2014-02-19 at 11:02 -0800, Saurabh Mishra wrote:
> config or driver do I need to enable in WR HVM guest such that it
> accepts 'xl/xm trigger <vm> power'?

Support for ACPI power events.

Ian.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-20  9:15     ` Ian Campbell
@ 2014-02-21  0:26       ` Saurabh Mishra
  2014-02-21 17:51         ` Saurabh Mishra
  0 siblings, 1 reply; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-21  0:26 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 421 bytes --]

Hi Ian --

So enabling 'CONFIG_APM=y' in WR kernel for HVM guest should be enough? Let
me try that out.

Thanks,
/Saurabh

On Thu, Feb 20, 2014 at 1:15 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:

> On Wed, 2014-02-19 at 11:02 -0800, Saurabh Mishra wrote:
> > config or driver do I need to enable in WR HVM guest such that it
> > accepts 'xl/xm trigger <vm> power'?
>
> Support for ACPI power events.
>
> Ian.
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-21  0:26       ` Saurabh Mishra
@ 2014-02-21 17:51         ` Saurabh Mishra
  2014-02-21 21:13           ` Konrad Rzeszutek Wilk
  2014-02-24 11:05           ` Ian Campbell
  0 siblings, 2 replies; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-21 17:51 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 860 bytes --]

Hi --

I tried enabling CONFIG_APM but it still didn't work. Let me know if you
guys happen to know what all needs to be enabled in guest HVM for ACPI
events to work (xm trigger <vm> power). Since SuSE HVM VM works with 'xm
trigger <vm> power', I'm suspecting we have not enabled something in our WR
distro.

Thanks,
/Saurabh


On Thu, Feb 20, 2014 at 4:26 PM, Saurabh Mishra <saurabh.globe@gmail.com>wrote:

> Hi Ian --
>
> So enabling 'CONFIG_APM=y' in WR kernel for HVM guest should be enough?
> Let me try that out.
>
> Thanks,
> /Saurabh
>
>
> On Thu, Feb 20, 2014 at 1:15 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:
>
>> On Wed, 2014-02-19 at 11:02 -0800, Saurabh Mishra wrote:
>> > config or driver do I need to enable in WR HVM guest such that it
>> > accepts 'xl/xm trigger <vm> power'?
>>
>> Support for ACPI power events.
>>
>> Ian.
>>
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 1794 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-21 17:51         ` Saurabh Mishra
@ 2014-02-21 21:13           ` Konrad Rzeszutek Wilk
  2014-02-21 22:04             ` Saurabh Mishra
  2014-02-24 11:05           ` Ian Campbell
  1 sibling, 1 reply; 14+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-21 21:13 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: Ian Campbell, xen-devel

On Fri, Feb 21, 2014 at 09:51:52AM -0800, Saurabh Mishra wrote:
> Hi --
> 
> I tried enabling CONFIG_APM but it still didn't work. Let me know if you
> guys happen to know what all needs to be enabled in guest HVM for ACPI
> events to work (xm trigger <vm> power). Since SuSE HVM VM works with 'xm
> trigger <vm> power', I'm suspecting we have not enabled something in our WR
> distro.

What is 'WR'? Anyhow, you might also need ACPI. Do you get any ACPI
events at all in your guest?

Aka, does /proc/interrupts for acpi show an increasing number as you
do 'xl trigger poweroff' ?

> 
> Thanks,
> /Saurabh
> 
> 
> On Thu, Feb 20, 2014 at 4:26 PM, Saurabh Mishra <saurabh.globe@gmail.com>wrote:
> 
> > Hi Ian --
> >
> > So enabling 'CONFIG_APM=y' in WR kernel for HVM guest should be enough?
> > Let me try that out.
> >
> > Thanks,
> > /Saurabh
> >
> >
> > On Thu, Feb 20, 2014 at 1:15 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:
> >
> >> On Wed, 2014-02-19 at 11:02 -0800, Saurabh Mishra wrote:
> >> > config or driver do I need to enable in WR HVM guest such that it
> >> > accepts 'xl/xm trigger <vm> power'?
> >>
> >> Support for ACPI power events.
> >>
> >> Ian.
> >>
> >>
> >>
> >

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-21 21:13           ` Konrad Rzeszutek Wilk
@ 2014-02-21 22:04             ` Saurabh Mishra
  0 siblings, 0 replies; 14+ messages in thread
From: Saurabh Mishra @ 2014-02-21 22:04 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: Ian Campbell, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3861 bytes --]

WR is WindRiver distribution. I don't see any interrupt count going up for
acpi.

   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi
   9:          0          0          0          0   IO-APIC-fasteoi   acpi

I don't see any ACPI events in the HVM guest either.

root@lc-6:/root>
root@lc-6:/root> ps -eaf | grep acpid
root      3771     1  0 21:57 ?        00:00:00 /usr/sbin/acpid
root      6684  3882  0 22:00 ttyS0    00:00:00 grep acpid
root@lc-6:/root> kill -9 3771
root@lc-6:/root> cat /proc/acpi/event

root@lc-6:/root> service acpid restart
Stopping acpi daemon: [FAILED]
Starting acpi daemon: [  OK  ]
root@lc-6:/root> service acpid restart
Stopping acpi daemon: [  OK  ]
Starting acpi daemon: [  OK  ]
root@lc-6:/root>

I issued trigger like this :-

xm trigger pvm-01-6 power


*HVM guest cfg file is :-*

boot = "c"
memory = 8192
vcpus = 4
disk = [
'file:/root/PSVs/mnt_local_ssd/local_ssd/pvm-6/ssc_pvm_01.img,hda,w',
',hdc:cdrom,r' ]
vif = [ 'model=e1000, mac=00:16:3e:00:05:00, bridge=br0', 'model=e1000,
mac=00:16:3f:00:05:01, bridge=br1' ]
pci = [  '0000:08:00.0=0@0b', '0000:01:00.0=0@0c', '0000:07:11.6=0@1a',
'0000:07:11.7=0@1b', '0000:88:11.6=0@1c', '0000:88:11.7=0@1d' ]
cpus = [  '36', '37', '38', '39' ]

#
# --- Mandatory config file entries ---
#

# HVM specific
kernel = "hvmloader"
builder = "hvm"
device_model = "qemu-dm"

# Enable ACPI support
acpi = 1

# Enable serial console
serial = "pty"

# Enable VNC
vnc = 1
vnclisten = "0.0.0.0"

pci_msitranslate = 0

# Default behavior for following events
on_reboot = "destroy"

# Enable Xen Platform PCI device for Platform VM
xen_platform_pci=0


Thanks,
/Saurabh

On Fri, Feb 21, 2014 at 1:13 PM, Konrad Rzeszutek Wilk <
konrad.wilk@oracle.com> wrote:

> On Fri, Feb 21, 2014 at 09:51:52AM -0800, Saurabh Mishra wrote:
> > Hi --
> >
> > I tried enabling CONFIG_APM but it still didn't work. Let me know if you
> > guys happen to know what all needs to be enabled in guest HVM for ACPI
> > events to work (xm trigger <vm> power). Since SuSE HVM VM works with 'xm
> > trigger <vm> power', I'm suspecting we have not enabled something in our
> WR
> > distro.
>
> What is 'WR'? Anyhow, you might also need ACPI. Do you get any ACPI
> events at all in your guest?
>
> Aka, does /proc/interrupts for acpi show an increasing number as you
> do 'xl trigger poweroff' ?
>
> >
> > Thanks,
> > /Saurabh
> >
> >
> > On Thu, Feb 20, 2014 at 4:26 PM, Saurabh Mishra <saurabh.globe@gmail.com
> >wrote:
> >
> > > Hi Ian --
> > >
> > > So enabling 'CONFIG_APM=y' in WR kernel for HVM guest should be enough?
> > > Let me try that out.
> > >
> > > Thanks,
> > > /Saurabh
> > >
> > >
> > > On Thu, Feb 20, 2014 at 1:15 AM, Ian Campbell <Ian.Campbell@citrix.com
> >wrote:
> > >
> > >> On Wed, 2014-02-19 at 11:02 -0800, Saurabh Mishra wrote:
> > >> > config or driver do I need to enable in WR HVM guest such that it
> > >> > accepts 'xl/xm trigger <vm> power'?
> > >>
> > >> Support for ACPI power events.
> > >>
> > >> Ian.
> > >>
> > >>
> > >>
> > >
>

[-- Attachment #1.2: Type: text/html, Size: 5955 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: xm/xl shutdown does not work with HVM guest
  2014-02-21 17:51         ` Saurabh Mishra
  2014-02-21 21:13           ` Konrad Rzeszutek Wilk
@ 2014-02-24 11:05           ` Ian Campbell
  1 sibling, 0 replies; 14+ messages in thread
From: Ian Campbell @ 2014-02-24 11:05 UTC (permalink / raw)
  To: Saurabh Mishra; +Cc: xen-devel

On Fri, 2014-02-21 at 09:51 -0800, Saurabh Mishra wrote:
> Hi --
> 
> 
> I tried enabling CONFIG_APM but it still didn't work.

APM != ACPI. They are totally different things.

I'm afraid I don't know specifically what needs to be done in a distro
to support ACPI but it is the same thing as makes a physical system shut
down when you press the power button on the case. At a minumum there is
probably some package which needs to be installed, but I can't advise
more specifically for a WR system.

If I were you I'd be asking WR about their ACPI support.

Ian.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-02-24 11:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-19 18:50 xm/xl shutdown does not work with HVM guest Saurabh Mishra
2014-02-19 18:56 ` Konrad Rzeszutek Wilk
2014-02-19 19:02   ` Saurabh Mishra
2014-02-19 19:24     ` Konrad Rzeszutek Wilk
2014-02-19 19:33       ` Saurabh Mishra
2014-02-19 19:52         ` Konrad Rzeszutek Wilk
2014-02-19 19:55           ` Saurabh Mishra
2014-02-20  9:15     ` Ian Campbell
2014-02-21  0:26       ` Saurabh Mishra
2014-02-21 17:51         ` Saurabh Mishra
2014-02-21 21:13           ` Konrad Rzeszutek Wilk
2014-02-21 22:04             ` Saurabh Mishra
2014-02-24 11:05           ` Ian Campbell
2014-02-20  9:14   ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.