qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] memory: Add function pointers checks to memory_region_read/write()
@ 2015-07-28  7:13 Salva Peiró
  2015-07-28  7:13 ` [Qemu-devel] [PATCH] " Salva Peiró
  0 siblings, 1 reply; 2+ messages in thread
From: Salva Peiró @ 2015-07-28  7:13 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel


The situation where QEMU crashes while attempting to call to a NULL
function pointer from a non-initialised field in the MemoryRegionOps
struct happens for the majority of emulated devices:
One approach for solving this is to correct it for each device. 
The other approach is to correct the memory_region_read/write caller
functions at memory.c to ensure that only initialised function pointers
are being called. This approach has the benefit of solving this kind of
error for all emulated devices.

The following patch adds function pointers checks to memory_region_read/write()

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-28  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28  7:13 [Qemu-devel] memory: Add function pointers checks to memory_region_read/write() Salva Peiró
2015-07-28  7:13 ` [Qemu-devel] [PATCH] " Salva Peiró

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).