History | View | Annotate | Download (7 kB)
HACKING: Document vaddr type usage
Also extend documentation of target_ulong and abi_ulong.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Andreas Färber <afaerber@suse.de>
osdep, kvm: rename low-level RAM allocation functions
This is preparatory to the introduction of a separate freeing API.
Reported-by: Amos Kong <akong@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Reviewed-by: Amos Kong <akong@redhat.com>...
HACKING: List areas where we may rely on impdef C behaviour
Add a section to HACKING saying which version of the C specwe use and describing the bits of implementation defined Ccompiler behaviour which C code in QEMU is allowed to rely on.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
Rename target_phys_addr_t to hwaddr
target_phys_addr_t is unwieldly, violates the C standard (_t suffixes arereserved) and its purpose doesn't match the name (most target_phys_addr_taddresses are not target specific). Replace it with a finger-friendly,...
doc: update HACKING wrt strncpy/pstrcpy
Reword the section on strncpy: its NUL-filling is importantin some cases. Mention that pstrcpy's signature is different.
Signed-off-by: Jim Meyering <meyering@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
HACKING: clarify allocation/free recommendations
Clarify the allocation/free recommendations; this is mostlyjust tidying up following the global-search-and-replace donewith the conversion to the GLib g_malloc and friends.
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
Convert last qemu_free and qemu_malloc uses
7267c0947d7e8ae5dff7bafd932c3bc285f43e5c misseda few cases, fix them.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Update HACKING to refer to g_malloc instead of qemu_malloc
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
HACKING: Update status of format checking
Hopefully all functions with printf like arguments now use format checking.
This was tested with default build configuration on linuxand windows hosts (including some cross compilations),so chances are good that there remain few (if any) functions...
HACKING: add rules for printf-like functions
Add rules for printf-like functions, based on libvirt HACKING.
HACKING: add string management rules
Add string management rules, somewhat like libvirt HACKING.
HACKING: add memory management rules
Add memory management rules, somewhat like libvirt HACKING.
HACKING: add C type rules
Add C type rules, adapted from libvirt HACKING. Also includea description of special QEMU scalar types.
Move typedef rule from CODING_STYLE rule 3 to HACKING rule 6where it belongs.
HACKING: add preprocessor rules
Add a new file, HACKING, in order to collect recurringissues with submitted patches.
Start with preprocessor rules, adapted from libvirt HACKING.