diff options
author | Alexey Kardashevskiy | 2018-01-11 05:08:32 +0100 |
---|---|---|
committer | David Gibson | 2018-01-16 23:35:24 +0100 |
commit | a36593e16757e524c1596d93914155bd8acbb90a (patch) | |
tree | d2c03b54991a01c7451122d3ab9cd4992132c73b /include/hw/ppc/spapr.h | |
parent | Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180116' into staging (diff) | |
download | qemu-a36593e16757e524c1596d93914155bd8acbb90a.tar.gz qemu-a36593e16757e524c1596d93914155bd8acbb90a.tar.xz qemu-a36593e16757e524c1596d93914155bd8acbb90a.zip |
target/ppc: Yet another fix for KVM-HV HPTE accessors
As stated in the 1ad9f0a464fe commit log, the returned entries are not
a whole PTEG. It was not a problem before 1ad9f0a464fe as it would read
a single record assuming it contains a whole PTEG but now the code tries
reading the entire PTEG and "if ((n - i) < invalid)" produces negative
values which then are converted to size_t for memset() and that throws
seg fault.
This fixes the math.
While here, fix the last @i increment as well.
Fixes: 1ad9f0a464fe "target/ppc: Fix KVM-HV HPTE accessors"
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/spapr.h')
0 files changed, 0 insertions, 0 deletions