[Qemu-devel] [PATCH 0/2] sheepdog: remove huge BSS object

Paolo Bonzini posted 2 patches 5 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180522201056.1442-1-pbonzini@redhat.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
There is a newer version of this series
block/sheepdog.c | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
[Qemu-devel] [PATCH 0/2] sheepdog: remove huge BSS object
Posted by Paolo Bonzini 5 years, 11 months ago
block/sheepdog.o has a 4M static variable that is 90% of QEMU's whole .bss
section.  Since it doesn't really have to be static, we can just use a
heap allocated block.  We can actually make it smaller too. :)

Patch 1 is a related cleanup since we're touching that area of the code.

Paolo

Paolo Bonzini (2):
  sheepdog: cleanup repeated expression
  sheepdog: remove huge BSS object

 block/sheepdog.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

-- 
2.17.0