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:
Sonny Rao 2018-05-07 18:30:10 -07:00 committed by chrome-bot
parent 6f6854312d
commit 5165cb7eec

View file

@ -191,7 +191,7 @@ impl arch::LinuxArch for AArch64 {
}
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