Displaying 9 results from an estimated 9 matches for "device_power_down".
2008 Aug 26
0
[PATCH] xen: wrap load_cr3() in manage.c for ia64 support.
...e_mfn);
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index a5bc91a..c7f2953 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -39,8 +39,7 @@ static int xen_suspend(void *data)
BUG_ON(!irqs_disabled());
- load_cr3(swapper_pg_dir);
-
+ xen_pre_device_suspend();
err = device_power_down(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "xen_suspend: device_power_down failed: %d\n",
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 883a21b..a26db6f 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -5,6 +5,7 @@
DECLARE_PER_CPU(struct vcpu_inf...
2008 Jul 03
0
[PATCH] xen: remove load_cr3() from manage.c for ia64 support.
...d, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 2bb268e..e8db90c 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -39,8 +39,6 @@ static int xen_suspend(void *data)
BUG_ON(!irqs_disabled());
- load_cr3(swapper_pg_dir);
-
err = device_power_down(PMSG_SUSPEND);
if (err) {
printk(KERN_ERR "xen_suspend: device_power_down failed: %d\n",
--
1.5.3
2008 May 28
1
linux-next 20080528: XEN build error when no Power Mgt enabled
linux-next-20080528/drivers/xen/manage.c: In function 'xen_suspend':
linux-next-20080528/drivers/xen/manage.c:43: error: implicit declaration of function 'device_power_down'
linux-next-20080528/drivers/xen/manage.c:65: error: implicit declaration of function 'device_power_up'
linux-next-20080528/drivers/xen/manage.c: In function 'do_suspend':
linux-next-20080528/drivers/xen/manage.c:114: error: implicit declaration of function 'device_resume...
2008 May 28
1
linux-next 20080528: XEN build error when no Power Mgt enabled
linux-next-20080528/drivers/xen/manage.c: In function 'xen_suspend':
linux-next-20080528/drivers/xen/manage.c:43: error: implicit declaration of function 'device_power_down'
linux-next-20080528/drivers/xen/manage.c:65: error: implicit declaration of function 'device_power_up'
linux-next-20080528/drivers/xen/manage.c: In function 'do_suspend':
linux-next-20080528/drivers/xen/manage.c:114: error: implicit declaration of function 'device_resume...
2007 Jan 17
6
Ehancement to domU suspend/resume
...uspend
method of owned physical devices. Before that, one other necessary
step is to freeze all processes since some may still hold critical
resource. In this case, we need borrow some Linux PM stuff into
xen suspend path, something like:
Smp_suspend();
freeze_processes();
device_suspend();
device_power_down();
xenbus_suspend();
...
HYPERVISOR_suspend(virt_to_mfn(xen_start_info));
...
xenbus_resume();
device_power_up();
device_resume();
thaw_processes();
smp_resume();
It may be more difficult if we want to support wake-on-LAN when
that NIC is assigned to domU, which is more tightly related...
2012 Apr 02
6
[PATCH 0 of 3] Patches for Xen 4.2 (v2).
Patches that were posted last week - with review comments
addressed.
2007 Jun 27
0
[PATCH 1/10] Provide basic Xen PM infrastructure
...char *acpi_states[ACPI_S_STATE_COUNT] =
+{
+ [ACPI_STATE_S1] = "standby",
+ [ACPI_STATE_S3] = "mem",
+ [ACPI_STATE_S4] = "disk",
+};
+
+unsigned long acpi_video_flags;
+unsigned long saved_videomode;
+
+/* XXX: Add suspend failure recover later */
+static int device_power_down(void)
+{
+ console_suspend();
+
+ time_suspend();
+
+ i8259A_suspend();
+
+ ioapic_suspend();
+
+ lapic_suspend();
+
+ return 0;
+}
+
+static void device_power_up(void)
+{
+ lapic_resume();
+
+ ioapic_resume();
+
+ i8259A_resume();
+
+ time_resume();
+...
2007 Feb 14
4
[PATCH 3/12] Provide basic Xen PM infrastructure
...E_SPINLOCK(pm_lock);
+
+extern void do_suspend_lowlevel(void);
+
+static char *acpi_states[ACPI_S_STATE_COUNT] =
+{
+ [ACPI_STATE_S1] = "standby",
+ [ACPI_STATE_S3] = "mem",
+ [ACPI_STATE_S4] = "disk",
+};
+
+/* Add suspend failure recover later */
+static int device_power_down(void)
+{
+ console_suspend();
+
+ time_suspend();
+
+ i8259A_suspend();
+
+ ioapic_suspend();
+
+ lapic_suspend();
+
+ return 0;
+}
+
+static void device_power_up(void)
+{
+ lapic_resume();
+
+ ioapic_resume();
+
+ i8259A_resume();
+
+ time_resume();
+...
2013 Jul 28
8
powerdown problem on XEN
Hi guys,
I have a problem with powering down my system under the XEN hypervisor.
System details are as follows:
gentoo linux, X86_64
XEN version 4.2.2
linux hardened kernel 3.9.5 as dom0
Xeon E3 1260L processor (vt-d capable)
32GB ECC RAM which has been thoroughly tested - so should be o.k.
when I issue "shutdown -h now" from dom0 the system usually reboots
instead of turning off