[Xen-devel] [PATCH] kimage: Allow load/exec for images with KEXEC_TYPE_LIVE_UPDATE

2020-02-07 Thread Varad Gautam
Do not -EINVAL on loading/execing an image if kexec type is KEXEC_TYPE_LIVE_UPDATE. Signed-off-by: Varad Gautam CC: David Woodhouse --- xen/common/kimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/kimage.c b/xen/common/kimage.c index 86d2797..599aa74 100644 --- a/xen

[Xen-devel] [PATCH v3] x86: irq: Do not BUG_ON multiple unbind calls for shared pirqs

2020-01-29 Thread Varad Gautam
ontinue if a shared pirq has already been unbound from this guest. The PIRQ will be cleaned up from the domain's pirq_tree during the destruction in complete_domain_destroy anyways. Signed-off-by: Varad Gautam Reviewed-by: Paul Durrant CC: Jan Beulich CC: Julien Grall CC: Roger Pau Monné CC: An

[Xen-devel] [PATCH v2] x86: irq: Do not BUG_ON multiple unbind calls for shared pirqs

2019-12-18 Thread Varad Gautam
ontinue if a shared pirq has already been unbound from this guest. The PIRQ will be cleaned up from the domain's pirq_tree during the destruction in complete_domain_destroy anyways. Signed-off-by: Varad Gautam CC: Jan Beulich CC: Roger Pau Monné CC: Andrew Cooper v2: Split the check on act

[Xen-devel] [PATCH] x86: irq: Do not BUG_ON multiple unbind calls for shared pirqs

2019-07-03 Thread Varad Gautam
d up from the domain's pirq_tree during the destruction in complete_domain_destroy. Signed-off-by: Varad Gautam --- To apply stable-4.11 onwards. xen/arch/x86/irq.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c inde

[Xen-devel] [PATCH] x86: Get rid of p2m_host array allocation for HVM guests

2019-07-03 Thread Varad Gautam
xl susceptible to getting OOM-killed on guest creation. Convert the p2m_host table lookups to an arch-specific function that returns the mapping on-the-fly for x86 HVM guests to avoid this allocation, bringing down xl's memory usage from > 8GiB to < 70Mib for such launches. Signed

[Xen-devel] [PATCH] x86/pmtimer: Fix hvm_acpi_sleep_button behavior

2019-02-19 Thread Varad Gautam
Commit 19fb14622e941 "x86/pmtimer: move ACPI registers from PMTState to hvm_domain" misconfigures pm1a_sts for hvm_acpi_sleep_button with PWRBTN_STS instead of SLPBTN_STS, which leads to XEN_DOMCTL_SENDTRIGGER_SLEEP causing guest powerdowns. Fix this. Signed-off-by: Varad Gautam CC: