| Branch: | Revision:

root / HACKING @ feature-archipelago

History | View | Annotate | Download (7 kB)

# Date Author Comment
2be8d450 07/23/2013 03:41 am Peter Maydell

HACKING: Document vaddr type usage

Also extend documentation of target_ulong and abi_ulong.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andreas Färber <>

6eebf958 05/14/2013 04:53 pm Paolo Bonzini

osdep, kvm: rename low-level RAM allocation functions

This is preparatory to the introduction of a separate freeing API.

Reported-by: Amos Kong <>
Signed-off-by: Paolo Bonzini <>
Reviewed-by: Amos Kong <>...

47536317 12/08/2012 04:27 pm Peter Maydell

HACKING: List areas where we may rely on impdef C behaviour

Add a section to HACKING saying which version of the C spec
we use and describing the bits of implementation defined C
compiler behaviour which C code in QEMU is allowed to rely on.

Signed-off-by: Peter Maydell <>...

a8170e5e 10/23/2012 04:58 pm Avi Kivity

Rename target_phys_addr_t to hwaddr

target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
reserved) and its purpose doesn't match the name (most target_phys_addr_t
addresses are not target specific). Replace it with a finger-friendly,...

9b9e3ec1 10/05/2012 03:58 pm Jim Meyering

doc: update HACKING wrt strncpy/pstrcpy

Reword the section on strncpy: its NUL-filling is important
in some cases. Mention that pstrcpy's signature is different.

Signed-off-by: Jim Meyering <>
Signed-off-by: Anthony Liguori <>

f603a687 12/15/2011 05:27 pm Peter Maydell

HACKING: clarify allocation/free recommendations

Clarify the allocation/free recommendations; this is mostly
just tidying up following the global-search-and-replace done
with the conversion to the GLib g_malloc and friends.

Reviewed-by: Stefan Hajnoczi <>...

58a06675 08/21/2011 09:42 pm Blue Swirl

Convert last qemu_free and qemu_malloc uses

7267c0947d7e8ae5dff7bafd932c3bc285f43e5c missed
a few cases, fix them.

Signed-off-by: Blue Swirl <>

145e21db 08/21/2011 04:16 pm Anthony Liguori

Update HACKING to refer to g_malloc instead of qemu_malloc

Signed-off-by: Anthony Liguori <>

417131fb 02/26/2011 12:31 am Stefan Weil

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 linux
and windows hosts (including some cross compilations),
so chances are good that there remain few (if any) functions...

876f256b 09/10/2010 09:53 pm Blue Swirl

HACKING: add rules for printf-like functions

Add rules for printf-like functions, based on libvirt HACKING.

Signed-off-by: Blue Swirl <>

d241f143 09/10/2010 09:53 pm Blue Swirl

HACKING: add string management rules

Add string management rules, somewhat like libvirt HACKING.

Signed-off-by: Blue Swirl <>

54b2cc50 09/10/2010 09:52 pm Blue Swirl

HACKING: add memory management rules

Add memory management rules, somewhat like libvirt HACKING.

Signed-off-by: Blue Swirl <>

84174436 09/10/2010 09:47 pm Blue Swirl

HACKING: add C type rules

Add C type rules, adapted from libvirt HACKING. Also include
a description of special QEMU scalar types.

Move typedef rule from CODING_STYLE rule 3 to HACKING rule 6
where it belongs.

Signed-off-by: Blue Swirl <>

45fad878 09/10/2010 09:46 pm Blue Swirl

HACKING: add preprocessor rules

Add a new file, HACKING, in order to collect recurring
issues with submitted patches.

Start with preprocessor rules, adapted from libvirt HACKING.

Signed-off-by: Blue Swirl <>