Skip to content

Add missed read callback for some memory region

Li Qiang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fw_cfg_mem: add read memory region callbackhw/nvram/fw_cfg.c+6 -01 reply
2/8hw: debugexit: add read callbackhw/misc/debugexit.c+6 -00 replies
3/8hw: hyperv_testdev: add read callbackhw/misc/hyperv_testdev.c+8 -20 replies
4/8hw: pc-testdev: add read memory region callbackhw/misc/pc-testdev.c+16 -40 replies
5/8hw: designware: add read memory region callbackhw/pci-host/designware.c+7 -02 replies
6/8hw: pvrdma: add read memory region callbackhw/rdma/vmw/pvrdma_main.c+6 -00 replies
7/8hw: sun4c: add read memory region callbackhw/sparc64/sun4u.c+6 -01 reply
8/8exec: add read callback for notdirty memory regionexec.c+7 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/8] Add missed read callback for some memory region

From: Li Qiang <[email protected]>

This patch set try to add the missed read callback for memory region. Without this patchset, when the guest reads the IO port/memory, it will cause an NULL-dereference issue. For example, add
"-device isa-debug-exit" to command, then read the 0x501 port, it causes a SIGSEGV.

The only exception is 'readonly_mem_ops' as its read is directly access the underlying host ram as the comments says.

These missed read callback is mostly pointed by Laszlo Ersek.

Li Qiang (8):
fw_cfg_mem: add read memory region callback
hw: debugexit: add read callback
hw: hyperv_testdev: add read callback
hw: pc-testdev: add read memory region callback
hw: designware: add read memory region callback
hw: pvrdma: add read memory region callback
hw: sun4c: add read memory region callback
exec: add read callback for notdirty memory region

 exec.c                    |  7 +++++++
 hw/misc/debugexit.c       |  6 ++++++
 hw/misc/hyperv_testdev.c  | 10 ++++++++--
 hw/misc/pc-testdev.c      | 20 ++++++++++++++++----
 hw/nvram/fw_cfg.c         |  6 ++++++
 hw/pci-host/designware.c  |  7 +++++++
 hw/rdma/vmw/pvrdma_main.c |  6 ++++++
 hw/sparc64/sun4u.c        |  6 ++++++
 8 files changed, 62 insertions(+), 6 deletions(-)
Signature · 1 line
2.17.1