summaryrefslogtreecommitdiffstats
path: root/hw/misc/omap_l4.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-15 19:34:46 +0100
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:39 -0600
commit08c7517e5c5eb270ee068db6480def1fe35bddf1 (patch)
treeba2394b74ea60083fdbc8097c709270e31f621e5 /hw/misc/omap_l4.c
parentbea1470de93a38627ca333a1f7888bdfad029e9a (diff)
downloadhqemu-08c7517e5c5eb270ee068db6480def1fe35bddf1.zip
hqemu-08c7517e5c5eb270ee068db6480def1fe35bddf1.tar.gz
ivshmem: Implement shm=... with a memory backend
ivshmem has its very own code to create and map shared memory. Replace that with an implicitly created memory backend. Reduces the number of ways we create BAR 2 from three to two. The memory-backend-file is currently available only with CONFIG_LINUX, so this adds a second Linuxism to ivshmem (the other one is eventfd). Should we ever need to make it portable to systems where memory-backend-file can't be made to serve, we could create a memory-backend-shmem that allocates memory with shm_open(). Bonus fix: shared memory files are now created with permissions 0655 instead of 0777. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1458066895-20632-32-git-send-email-armbru@redhat.com>
Diffstat (limited to 'hw/misc/omap_l4.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud