search for: domain_unpause

Displaying 15 results from an estimated 15 matches for "domain_unpause".

2007 Jun 27
1
[PATCH 7/10] SMP support to Xen PM
...ruct domain *d; + + pd = NULL; for_each_domain(d) if (d->domain_id != 0) { domain_pause(d); if (is_hvm_domain(d) && !hvm_suspend_domain(d)) { - error = -EINVAL; - goto Unpause; + domain_unpause(d); + return 0; } pd = d; } - + return 1; +} + +static void thaw_domains(void) +{ + struct domain *d; + + if (pd) + { + for_each_domain(d) + { + if (d->domain_id != 0) + domain_unpause(d); + +...
2013 Mar 27
2
[PATCH] x86/S3: Restore broken vcpu affinity on resume (v3)
...371 100644 --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -96,7 +96,11 @@ static void thaw_domains(void) rcu_read_lock(&domlist_read_lock); for_each_domain ( d ) + { + if (system_state == SYS_STATE_resume) + restore_vcpu_affinity(d); domain_unpause(d); + } rcu_read_unlock(&domlist_read_lock); } diff --git a/xen/common/domain.c b/xen/common/domain.c index 64ee29d..590548e 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -126,6 +126,7 @@ struct vcpu *alloc_vcpu( if ( !zalloc_cpumask_var(&v->cpu_affinity...
2009 Jun 25
0
Error creating vm xen3.4
...pci. [2009-06-25 17:59:42 13862] DEBUG (DevController:139) Waiting for devices ioports. [2009-06-25 17:59:42 13862] DEBUG (DevController:139) Waiting for devices tap. [2009-06-25 17:59:42 13862] DEBUG (DevController:139) Waiting for devices vtpm. [2009-06-25 17:59:42 13862] ERROR (XendDomain:1183) domain_unpause Traceback (most recent call last): File "usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 1172, in domain_unpause raise XendInvalidDomain(str(domid)) XendInvalidDomain: <Fault 3: ''y''> I try to recompile dom0 kernel but it''s the same....
2012 Dec 12
2
[PATCH v7 1/2] xen: unify domain locking in domctl code
These two patches were originally part of the XSM series that I have posted, and remain prerequisites for that series. However, they are independent of the XSM changes and are a useful simplification regardless of the use of XSM. The Acked-bys on these patches were provided before rebasing them over the copyback changes in 26268:1b72138bddda, which had minor conflicts that I resolved. [PATCH
2007 Feb 14
0
[PATCH 11/12] Allow vcpu to pause self
...eed_sync) /* * Per-domain flags (domain_flags). @@ -465,6 +468,7 @@ static inline int vcpu_runnable(struct v void vcpu_pause(struct vcpu *v); void vcpu_pause_nosync(struct vcpu *v); +void vcpu_pause_self(void); void domain_pause(struct domain *d); void vcpu_unpause(struct vcpu *v); void domain_unpause(struct domain *d); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2013 Nov 20
2
[PATCH] hvm: reset TSC to 0 after domain resume from S3
....c @@ -3736,8 +3736,13 @@ static void hvm_s3_suspend(struct domain *d) static void hvm_s3_resume(struct domain *d) { + struct vcpu *v; if ( test_and_clear_bool(d->arch.hvm_domain.is_s3_suspended) ) + { + for_each_vcpu( d, v ) + hvm_set_guest_tsc( v, 0 ); domain_unpause(d); + } } static int hvmop_set_isa_irq_level( -- 1.8.4.rc3
2009 Apr 16
9
Second release candidate for Xen 3.4.0
Folks, The second release candidate for Xen 3.4.0 is available at http://xenbits.xensource.com/xen-unstable.hg, tagged as ''3.4.0-rc2''. Please test! -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2006 Aug 01
18
[Patch] Enable "sysrq c" handler for domU coredump
Hi, In the case of linux, crash_kexec() is occured by "sysrq c". In the case of DomainU on xen, Help is occured by "sysrq c" now. So The way of dumping DomainU''s memory manualy is nothing. I fix this issue by the following way. 1. Panic is occured by "sysrq c" on both Domain0 and DomainU. 2. On DomainU, coredump is generated in /var/xen/dump (on Domain0).
2013 Oct 08
3
Re: [PATCH v4 1/9] xen/arm: Implement hvm save and restore
...t_out; >> + >> + ret = -EFAULT; >> + if ( copy_from_guest(c.data, domctl->u.hvmcontext.buffer, c.size) != 0 ) >> + goto sethvmcontext_out; >> + >> + domain_pause(d); >> + ret = hvm_load(d, &c); >> + domain_unpause(d); >> + >> + sethvmcontext_out: >> + if ( c.data != NULL ) >> + xfree(c.data); >> + } >> + break; >> + case XEN_DOMCTL_gethvmcontext: >> + { >> + struct hvm_domain_context c = { 0 }; >> + >> +...
2007 Aug 28
6
[PATCH] Make XEN_DOMCTL_destroydomain hypercall continuable.
...2007 +0100 +++ b/xen/common/domain.c Tue Aug 28 13:06:41 2007 +0900 @@ -298,26 +298,37 @@ struct domain *rcu_lock_domain_by_id(dom } -void domain_kill(struct domain *d) -{ - domain_pause(d); - - /* Already dying? Then bail. */ - if ( test_and_set_bool(d->is_dying) ) - { - domain_unpause(d); - return; - } - - evtchn_destroy(d); - gnttab_release_mappings(d); - domain_relinquish_resources(d); - put_domain(d); - - /* Kick page scrubbing after domain_relinquish_resources(). */ - page_scrub_kick(); - - send_guest_global_virq(dom0, VIRQ_DOM_EXC); +int domai...
2013 Nov 06
0
[PATCH v5 5/6] xen/arm: Implement hypercall for dirty page tracing
...b/xen/arch/arm/domctl.c @@ -93,6 +93,15 @@ long arch_do_domctl(struct xen_domctl *domctl, struct domain *d, xfree(c.data); } break; + case XEN_DOMCTL_shadow_op: + { + domain_pause(d); + ret = dirty_mode_op(d, &domctl->u.shadow_op); + domain_unpause(d); + + copyback = 1; + } + break; default: return -EINVAL; diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index bf13993..d5a0a11 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -845,7 +845,6 @@ void destroy_xen_mappings(unsigned long v, unsign...
2007 Jun 27
10
[PATCH 6/10] Allow vcpu to pause self
...static inline int vcpu_runnable(struct vcpu *v) { @@ -467,6 +470,7 @@ static inline int vcpu_runnable(struct v void vcpu_pause(struct vcpu *v); void vcpu_pause_nosync(struct vcpu *v); +void vcpu_pause_self(void); void domain_pause(struct domain *d); void vcpu_unpause(struct vcpu *v); void domain_unpause(struct domain *d); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2007 Jun 27
0
[PATCH 1/10] Provide basic Xen PM infrastructure
...r = -EINVAL; + break; + } + + pmprintk(XENLOG_INFO, "Back to C!\n"); + + device_power_up(); + + pmprintk(XENLOG_INFO, "PM: Finishing wakeup.\n"); + + Done: + local_irq_restore(flags); + + for_each_domain(d) + if (d->domain_id!=0) + domain_unpause(d); + + spin_unlock(&pm_lock); + return error; + +} + +static int __init acpi_sleep_init(void) +{ + int i = 0; + + pmprintk(XENLOG_INFO, "ACPI (supports"); + for (i = 0; i < ACPI_S_STATE_COUNT; i++) + { + if (i == ACPI_STATE_S3) + { + sle...
2007 Feb 14
4
[PATCH 3/12] Provide basic Xen PM infrastructure
...goto Powerup; + } + + printk("Back to C!\n"); + if (state > ACPI_STATE_S1) + acpi_restore_state_mem(); + + Powerup: + device_power_up(); + + printk("PM: Finishing wakeup.\n"); + for_each_domain(d) + if (d->domain_id!=0) + domain_unpause(d); + + Done: + local_irq_restore(flags); + spin_unlock(&pm_lock); + return error; + +} + +static int __init acpi_sleep_init(void) +{ + int i = 0; + + printk("ACPI (supports"); + for (i = 0; i < ACPI_S_STATE_COUNT; i++) { + if (i == ACPI_STATE_S3){ +...
2013 Mar 25
86
[PATCH 00/28] libxl: ocaml: improve the bindings
The following series of patches fill in most of the gaps in the OCaml bindings to libxl, to make them useful for clients such as xapi/xenopsd (from XCP). There are a number of bugfixes to the existing bindings as well. I have an experimental version of xenopsd that successfully uses the new bindings. An earlier version of the first half of the series was submitted to the last by Ian Campbell on