# Re: \[PATCH\] Drivers: hv: balloon: Remove dependencies on guest page size

- From: Sasha Levin \<sashal@kernel.org\>
- Date: 2019-10-04 15:46:19 
- List: linux-hyperv
- Page: https://ratatoskr.run/linux-hyperv/2019/10/5735463
- Thread: https://ratatoskr.run/linux-hyperv/2019/10/5735463/t.md

```text
On Wed, Sep 04, 2019 at 11:37:12PM +0000, Michael Kelley wrote:
>From: Himadri Pandya <redacted> Sent: Friday, August 16, 2019 9:09 PM
>>
>> Hyper-V assumes page size to be 4K. This might not be the case for
>> ARM64 architecture. Hence use hyper-v specific page size and page
>> shift definitions to avoid conflicts between different host and guest
>> page sizes on ARM64.
>>
>> Also, remove some old and incorrect comments and redefine ballooning
>> granularities to handle larger page sizes correctly.
>>
>> Signed-off-by: Himadri Pandya <redacted>
>> ---
>>  drivers/hv/hv_balloon.c | 25 ++++++++++++-------------
>>  1 file changed, 12 insertions(+), 13 deletions(-)
>>
>
>Reviewed-by: Michael Kelley <redacted>
>
>Thomas -- can you pick up this patch in the x86/hyperv branch of your
>tip tree along with the other patches to fix wrong page size assumptions?

I've queued this for hyperv-next, thanks!

--
Thanks,
Sasha
```
