Philippe Mathieu-Daudé
97480ca692
hw: Remove unnecessary 'system/ram_addr.h' header
...
None of these files require definition exposed by "system/ram_addr.h",
remove its inclusion.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Reviewed-by: Eric Farman <farman@linux.ibm.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Message-Id: <20251001175448.18933-7-philmd@linaro.org >
2025-10-07 05:03:56 +02:00
Richard Henderson
4705a71db5
include/system: Move exec/ram_addr.h to system/ram_addr.h
...
Convert the existing includes with sed.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2025-04-23 14:08:24 -07:00
Marc-André Lureau and Paolo Bonzini
0f9668e0c1
Remove qemu-common.h include from most units
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20220323155743.1585078-33-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2022-04-06 14:31:55 +02:00
Yang Zhong and Cleber Rosa
f4a3fda43e
remote/memory: Replace share parameter with ram_flags
...
Fixes: d5015b8013 ("softmmu/memory: Pass ram_flags to
qemu_ram_alloc_from_fd()")
Signed-off-by: Yang Zhong <yang.zhong@intel.com >
Reviewed-by: David Hildenbrand <david@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Pankaj Gupta <pankaj.gupta@ionos.com >
Reviewed-by: Peter Xu <peterx@redhat.com >
Message-Id: <20210709052800.63588-1-yang.zhong@intel.com >
Signed-off-by: Cleber Rosa <crosa@redhat.com >
2021-07-20 15:34:20 -04:00
Zenghui Yu and Stefan Hajnoczi
d90226808b
multi-process: Initialize variables declared with g_auto*
...
Quote docs/devel/style.rst (section "Automatic memory deallocation"):
* Variables declared with g_auto* MUST always be initialized,
otherwise the cleanup function will use uninitialized stack memory
Initialize @name properly to get rid of the compilation error (using
gcc-7.3.0 on CentOS):
../hw/remote/proxy.c: In function 'pci_proxy_dev_realize':
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: 'name' may be used uninitialized in this function [-Werror=maybe-uninitialized]
g_free (*pp);
^~~~~~~~~~~~
../hw/remote/proxy.c:350:30: note: 'name' was declared here
g_autofree char *name;
^~~~
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com >
Reviewed-by: Jagannathan Raman <jag.raman@oracle.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com >
Message-id: 20210312112143.1369-1-yuzenghui@huawei.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2021-05-21 15:43:57 +01:00
Thomas Huth and Laurent Vivier
ee86213aa3
Do not include exec/address-spaces.h if it's not really necessary
...
Stop including exec/address-spaces.h in files that don't need it.
Signed-off-by: Thomas Huth <thuth@redhat.com >
Message-Id: <20210416171314.2074665-5-thuth@redhat.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-05-02 17:24:51 +02:00
Jagannathan Raman and Stefan Hajnoczi
ed5d001916
multi-process: setup memory manager for remote device
...
SyncSysMemMsg message format is defined. It is used to send
file descriptors of the RAM regions to remote device.
RAM on the remote device is configured with a set of file descriptors.
Old RAM regions are deleted and new regions, each with an fd, is
added to the RAM.
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com >
Signed-off-by: John G Johnson <john.g.johnson@oracle.com >
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Message-id: 7d2d1831d812e85f681e7a8ab99e032cf4704689.1611938319.git.jag.raman@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2021-02-10 09:23:28 +00:00