mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-01-13 01:07:34 +00:00
crosvm: aarch64: fix lack of shifting for base_dev_pfn
This is a pfn (page-frame number) not a raw address, so we need to shift it right by 12. BUG=chromium:840048 TEST=manual test on kevin with virtio wayland and --disable-sandbox, should not get "failed to recv from vfd: VmBadResponse" message Change-Id: I788712ec7b9b3e9b4ada481d62a5f2ae1624e929 Reviewed-on: https://chromium-review.googlesource.com/1049060 Commit-Ready: Sonny Rao <sonnyrao@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
6f6854312d
commit
5165cb7eec
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ impl arch::LinuxArch for AArch64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_base_dev_pfn(mem_size: u64) -> u64 {
|
fn get_base_dev_pfn(mem_size: u64) -> u64 {
|
||||||
AARCH64_PHYS_MEM_START + mem_size
|
(AARCH64_PHYS_MEM_START + mem_size) >> 12
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This returns a base part of the kernel command for this architecture
|
/// This returns a base part of the kernel command for this architecture
|
||||||
|
|
Loading…
Reference in a new issue