RE: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-21 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > > ... > > When a Linux guest runs on Hyper-V (x86_32, x86_64, or ARM64) , we have a > > front-end balloon driver in the guest, which balloons up/down and > > hot adds/removes the guest's memory when the host requests that. The > > problem > > is: the bac

Re: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-20 Thread Pavel Machek
> > From: linux-hyperv-ow...@vger.kernel.org > > On Behalf Of Lorenzo Pieralisi > > Sent: Monday, June 17, 2019 9:15 AM > > > ... > > > + some ARM experts who worked on arch/arm/kernel/hibernate.c. > > > > > > drivers/acpi/sleep.c is only built if ACPI_SYSTEM_POWER_STATES_SUPPORT > > > is defined,

RE: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-19 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Lorenzo Pieralisi > Sent: Monday, June 17, 2019 9:15 AM > > ... > > + some ARM experts who worked on arch/arm/kernel/hibernate.c. > > > > drivers/acpi/sleep.c is only built if ACPI_SYSTEM_POWER_STATES_SUPPORT > > is defined, but it looks th

Re: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-17 Thread Lorenzo Pieralisi
m; > > erik.schma...@intel.com > > Cc: linux-hyp...@vger.kernel.org; linux-kernel@vger.kernel.org; KY > > Srinivasan > > ; Stephen Hemminger ; > > Haiyang Zhang ; Sasha Levin > > ; o...@aepfle.de; a...@canonical.com; > > jasow...@redhat.com; vkuznets ; &

Re: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-17 Thread Pavel Machek
> > It seems that sleep.c isn't built when on the ARM64 architecture. Using > > acpi_sleep_state_supported() directly in hv_balloon.c will be problematic > > since hv_balloon.c needs to be architecture independent when the > > Hyper-V ARM64 support is added. If that doesn't change, a per-archite

Re: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-17 Thread Pavel Machek
Hi! > > > In a Linux VM running on Hyper-V, when ACPI S4 is enabled, the balloon > > > driver (drivers/hv/hv_balloon.c) needs to ask the host not to do memory > > > hot-add/remove. > > > > > > So let's export acpi_sleep_state_supported() for the hv_balloon driver. > > > This might also be useful t

RE: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-14 Thread Dexuan Cui
> From: linux-hyperv-ow...@vger.kernel.org > On Behalf Of Russell King > On Fri, Jun 14, 2019 at 10:19:02PM +, Dexuan Cui wrote: > > It looks ARM does not support the ACPI S4 state, then how do we know > > if an ARM host supports hibernation or not? > > Don't forget that Linux does not suppor

Re: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-14 Thread Russell King - ARM Linux admin
o...@intel.com; > > erik.schma...@intel.com > > Cc: linux-hyp...@vger.kernel.org; linux-kernel@vger.kernel.org; KY > > Srinivasan > > ; Stephen Hemminger ; > > Haiyang Zhang ; Sasha Levin > > ; o...@aepfle.de; a...@canonical.com; > > jasow...@redhat.com; vkuz

RE: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-14 Thread Dexuan Cui
l@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; > Haiyang Zhang ; Sasha Levin > ; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; vkuznets ; > marcelo.ce...@canonical.com > Subject: RE: [PATCH] ACPI: PM: Export the function > acpi_sleep_state_supported() >

RE: [PATCH] ACPI: PM: Export the function acpi_sleep_state_supported()

2019-06-14 Thread Michael Kelley
From: Dexuan Cui Sent: Friday, June 14, 2019 11:19 AM > > In a Linux VM running on Hyper-V, when ACPI S4 is enabled, the balloon > driver (drivers/hv/hv_balloon.c) needs to ask the host not to do memory > hot-add/remove. > > So let's export acpi_sleep_state_supported() for the hv_balloon driver