Re: [PATCH 3/4] KVM: arm64: Fix address check for memory slot

2021-03-15 Thread Gavin Shan
Hi Keqian, On 3/15/21 6:33 PM, Keqian Zhu wrote: FYI, this has been fixed by Marc in commit 262b003d059c. Yeah, I didn't check 5.12.rc3 code where the issue has been fixed. So please ignore this one and sorry for the noise. Thanks, Gavin On 2021/3/15 12:18, Gavin Shan wrote: The last

Re: [PATCH 3/4] KVM: arm64: Fix address check for memory slot

2021-03-15 Thread Keqian Zhu
Hi Gavin, FYI, this has been fixed by Marc in commit 262b003d059c. Thanks, Keqian On 2021/3/15 12:18, Gavin Shan wrote: > The last (IPA) page can't be specified when a new memory slot is > added. The error -EFAULT is returned when the memory slot is added > with the following parameters for the

[PATCH 3/4] KVM: arm64: Fix address check for memory slot

2021-03-14 Thread Gavin Shan
The last (IPA) page can't be specified when a new memory slot is added. The error -EFAULT is returned when the memory slot is added with the following parameters for the VM, which has 40-bits IPA limit. The host has 4KB base page size. It's not correct because the last (IPA) page is still usable.