This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] shutdown/reboot/sysrq/vcpu-set from dom0 to HVM guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] shutdown/reboot/sysrq/vcpu-set from dom0 to HVM guest
From: Frédéric VANNIÈRE <frederic@xxxxxxxxxxx>
Date: Tue, 31 Aug 2010 17:18:10 +0200
Delivery-date: Tue, 31 Aug 2010 08:18:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

I'm working with HVM linux guest and found that "xl 
reboot/shutdown/sysrq/vcpu-set DOMAIN" did not work.

Xen : 4.0.1
Dom0 : 2.6.32.
DomU : 2.6.36-rc3    pv-on-hvm drivers (vbd, vif, xenbus)

In order to make the commands working in the file 
linux-2.6.36-rc3/drivers/xen/manage.c  I've modified the function 
__setup_shutdown_even(void) to remove the check (this is BAD !). 

For the cpu-set I've modified the file 
linux-2.6.36-rc3/drivers/xen/cpu_hotplug.c and the check fo pv_domain in 
setup_vcpu_hotlug_event(void).  And then I can remove CPUs but not add some  :

    xl vcpu-set DOMID 2 -> "CPU 2 is now offline / CPU 3 is now offline" 

I've tried the same modification on ballooning driver and hvc console one but 
it gave me a kernel panic ...


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] shutdown/reboot/sysrq/vcpu-set from dom0 to HVM guest, Frédéric VANNIÈRE <=