mbox series

[v1,0/2] xen: mapcache: Fix unmapping of first the entry in a bucket

Message ID 20240701224421.1432654-1-edgar.iglesias@gmail.com (mailing list archive)
Headers show
Series xen: mapcache: Fix unmapping of first the entry in a bucket | expand

Message

Edgar E. Iglesias July 1, 2024, 10:44 p.m. UTC
From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

This fixes the unmapping of the first mapping in a bucket of a mapcache.

We also add error handling to qemu_ram_block_from_host() to bail out when
xen_ram_addr_from_mapcache() doesn't find an existing mapping.

Cheers,
Edgar

Edgar E. Iglesias (2):
  physmem: Bail out qemu_ram_block_from_host() for invalid ram addrs
  xen: mapcache: Fix unmapping of first entries in buckets

 hw/xen/xen-mapcache.c | 12 +++++++++++-
 system/physmem.c      |  4 ++++
 2 files changed, 15 insertions(+), 1 deletion(-)