From: Anthony Xu <anthony.xu@intel.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, eblake@redhat.com,
Anthony Xu <anthony.xu@intel.com>
Subject: [Qemu-devel] [PATCH 0/4] pam: make pam configurable
Date: Fri, 7 Apr 2017 17:45:32 -0700 [thread overview]
Message-ID: <1491612336-31066-1-git-send-email-anthony.xu@intel.com> (raw)
Qemu creates 13 enabled memory regions and 39 disabled memory regions
for pam. in normal setup, more than half of all memory regions in
system root region are memory regions for pam. Which slow down all
memory region related operations.
This patch makes pam configurable, by default it is enabled.
it keeps the old behavior by default.
you can disable pam by appending pam=off to -machine. If pam is
disabled, all memory regions for pam are gone, and some memory
region operations are gone since these memory regions are gone,
and memory region operations is fast because there are much less
memory regions. This patch works on both seabios and qboot,
it reduces Qemu heap size from ~12MB to ~9MB
if pam is disabled, pc.rom is useless, so it is disabled as well.
when pam is disabled, pc.bios and isa.bios are writeable memory
region, and isa.bios is put under system memory region, otherwise
isa.bios is acctually disabled because it is under pci memory region
which has lower priority than pc.ram region.
Anthony Xu (4):
pam: refactor PAM related code
pam: Make PAM configurable
pam: disable pc.rom when pam is disabled
pam: setup pc.bios
hw/i386/pc.c | 33 ++++++++++++++++++++++------
hw/i386/pc_sysfw.c | 30 +++++++++++++++++--------
hw/pci-host/piix.c | 62 ++++++++++++++++++++++++++++++++++++++--------------
hw/pci-host/q35.c | 43 ++++++++++++++++++++++--------------
include/hw/i386/pc.h | 6 ++++-
5 files changed, 123 insertions(+), 51 deletions(-)
--
1.8.3.1
next reply other threads:[~2017-04-08 0:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-08 0:45 Anthony Xu [this message]
2017-04-08 0:45 ` [Qemu-devel] [PATCH 1/4] pam:refactor PAM related code Anthony Xu
2017-04-08 9:49 ` Paolo Bonzini
2017-04-11 1:25 ` Xu, Anthony
2017-04-08 0:45 ` [Qemu-devel] [PATCH 2/4] pam: Make PAM configurable Anthony Xu
2017-04-08 0:45 ` [Qemu-devel] [PATCH 3/4] pam: disable pc.rom when pam is disabled Anthony Xu
2017-04-08 0:45 ` [Qemu-devel] [PATCH 4/4] pam: setup pc.bios Anthony Xu
2017-04-08 9:49 ` Paolo Bonzini
2017-04-11 1:42 ` Xu, Anthony
2017-04-11 9:18 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1491612336-31066-1-git-send-email-anthony.xu@intel.com \
--to=anthony.xu@intel.com \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).