diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2015-09-10 16:36:51 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2015-10-01 16:16:52 +0300 |
| commit | c2dfc5ba3fb3a1b7278c99bfd3bf350202169434 (patch) | |
| tree | 2f8db5fe1a3ed277d719eb8f354cbfb46a4586e2 /scripts/qapi-introspect.py | |
| parent | 0cf33fb6b49a19de32859e2cdc6021334f448fb3 (diff) | |
| download | focaccia-qemu-c2dfc5ba3fb3a1b7278c99bfd3bf350202169434.tar.gz focaccia-qemu-c2dfc5ba3fb3a1b7278c99bfd3bf350202169434.zip | |
oslib: rework anonimous RAM allocation
At the moment we first allocate RAM, sometimes more than necessary for alignment reasons. We then free the extra RAM. Rework this to avoid the temporary allocation: reserve the range by mapping it with PROT_NONE, then use just the necessary range with MAP_FIXED. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-introspect.py')
0 files changed, 0 insertions, 0 deletions