[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] e206ad: ppc: fix -mem-path failure
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] e206ad: ppc: fix -mem-path failure |
Date: |
Tue, 22 Jul 2014 09:30:04 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: e206ad48333c50373663945746828fc893b50700
https://github.com/qemu/qemu/commit/e206ad48333c50373663945746828fc893b50700
Author: Hu Tao <address@hidden>
Date: 2014-07-22 (Tue, 22 Jul 2014)
Changed paths:
M hw/ppc/mac_newworld.c
M hw/ppc/mac_oldworld.c
M hw/ppc/ppc405_boards.c
M hw/ppc/ppc405_uc.c
M hw/ppc/ppc4xx_devs.c
Log Message:
-----------
ppc: fix -mem-path failure
commit e938ba0c tried to enable -mem-path for ppc but breaked some ppc
boards.
The problems are:
1. it fails when allocating memory for rom, sram whose sizes are less
than huge page size:
./ppc-softmmu/qemu-system-ppc -m 512 -mem-path /hugepages/ \
-kernel /home/hutao/Downloads/vmlinux-ppc -initrd \
/home/hutao/Downloads/initrd-ppc.gz
qemu-system-ppc: /mnt/data/projects/qemu/exec.c:1184: qemu_ram_set_idstr:
Assertion `new_block' failed.
2. if there is a numa node backed by memory backend object, qemu fails
with message:
./ppc-softmmu/qemu-system-ppc -m 512 \
-object memory-backend-file,size=512M,mem-path=/hugepages,id=f0 \
-numa node,nodeid=0,memdev=f0 \
-kernel /home/hutao/Downloads/vmlinux-ppc \
-initrd /home/hutao/Downloads/initrd-ppc.gz
qemu-system-ppc: memory backend f0 is used multiple times. Each -numa option
must use a different memdev value.
This patch does following:
1. replaces memory_region_allocate_system_memory() with
memory_region_init_ram() for rom, sram. Then only system memory
is backed by hugepages when specifying mem-path.
2. for memory banks, allocates all ram with
one memory_region_allocate_system_memory(), and use
memory_region_init_alias() to initialize memory banks.
Tested machines: default(g3beige), mac99, taihu, bamboo, ref405ep.
Signed-off-by: Hu Tao <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
Commit: 3a18d449836d21dee60439b154056cca9a3b6aee
https://github.com/qemu/qemu/commit/3a18d449836d21dee60439b154056cca9a3b6aee
Author: Peter Maydell <address@hidden>
Date: 2014-07-22 (Tue, 22 Jul 2014)
Changed paths:
M hw/ppc/mac_newworld.c
M hw/ppc/mac_oldworld.c
M hw/ppc/ppc405_boards.c
M hw/ppc/ppc405_uc.c
M hw/ppc/ppc4xx_devs.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream'
into staging
Patch queue for ppc - 2014-07-22
Only a single bug fix to make -mem-path only affect RAM regions.
# gpg: Signature made Tue 22 Jul 2014 16:38:04 BST using RSA key ID 03FEDC60
# gpg: Can't check signature: public key not found
* remotes/agraf/tags/signed-ppc-for-upstream:
ppc: fix -mem-path failure
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/b64c670f1ddc...3a18d449836d
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] e206ad: ppc: fix -mem-path failure,
GitHub <=