[Qemu-devel] [PATCH] Memory: use memory address space for cpu-memory

2017-05-16 Thread Anthony Xu
and memory usage. Signed-off-by: Anthony Xu <anthony...@intel.com> --- cpus.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 740b8dc..15c7a6a 100644 --- a/cpus.c +++ b/cpus.c @@ -1748,8 +1748,13 @@ void qemu_init_vcpu(CPUStat

[Qemu-devel] [PATCH] SMM: disable smram region if smm is disabled

2017-05-15 Thread Anthony Xu
when smm is disabled, smram is not used, so disable it Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/pci-host/piix.c | 45 +++-- hw/pci-host/q35.c | 83 +- kvm-all.c | 3 +- target/i386/kvm.c

[Qemu-devel] [PATCH] trace: add sanity check

2017-05-09 Thread Anthony Xu
If trace backend is set to TRACE_NOP, trace_get_vcpu_event_count returns 0, cause bitmap_new call abort. Signed-off-by: Anthony Xu <anthony...@intel.com> --- qom/cpu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qom/cpu.c b/qom/cpu.c index f02e9c0..f9111a0

[Qemu-devel] [PATCH 3/4] pam: disable pc.rom when pam is disabled

2017-04-07 Thread Anthony Xu
pc.rom depends on pam. When pam is disabled, pc.rom is useless Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/i386/pc.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 9d154c2..455f7fe 100644 --- a/hw/i386/pc.c ++

[Qemu-devel] [PATCH 2/4] pam: Make PAM configurable

2017-04-07 Thread Anthony Xu
by default PAM is enabled. when PAM is disabled, *_init_pam and *_update_pam are dummy functions Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/i386/pc.c | 18 ++ hw/pci-host/piix.c | 36 hw/pci-host/q35.c

[Qemu-devel] [PATCH 4/4] pam: setup pc.bios

2017-04-07 Thread Anthony Xu
when pam is disabled, set pc.bios and isa.bios region as writeable, and add isa.bios to system memory region. Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/i386/pc.c | 2 +- hw/i386/pc_sysfw.c | 30 +- include/hw/i386/pc.h | 4 +++- 3

[Qemu-devel] [PATCH 0/4] pam: make pam configurable

2017-04-07 Thread Anthony Xu
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

[Qemu-devel] [PATCH 1/4] pam:refactor PAM related code

2017-04-07 Thread Anthony Xu
split PAM SMRAM functions in piix.c create mch_init_pam in q35.c Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/pci-host/piix.c | 58 ++ hw/pci-host/q35.c | 23 +- 2 files changed, 55 insertions(+), 26 del

[Qemu-devel] [PATCH v2] kvmvapic: Enable kvmvapic when necessary

2017-04-06 Thread Anthony Xu
If KVM provides VAPIC, don't set up kvmvapic. Signed-off-by: Anthony Xu <anthony...@intel.com> --- hw/intc/apic_common.c | 5 - include/sysemu/kvm.h | 1 + kvm-all.c | 5 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/intc/apic_common.c b/h

[Qemu-devel] [PATCH 3/3] move xen-mapcache.c to hw/i386/xen/

2017-04-05 Thread Anthony Xu
move xen-mapcache.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> --- Makefile.target | 3 --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/i386/xen/Makefil

[Qemu-devel] [PATCH 1/3] move xen-common.c to hw/xen/

2017-04-05 Thread Anthony Xu
move xen-common.c to hw/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> --- Makefile.target | 2 -- hw/xen/Makefile.objs| 2 +- xen-common.c => hw/xen/xen-common.c | 0 stubs/Makefile.objs | 1 + xen-comm

[Qemu-devel] [PATCH 2/3] move xen-hvm.c to hw/i386/xen/

2017-04-05 Thread Anthony Xu
move xen-hvm.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> --- Makefile.target| 3 +-- hw/i386/xen/Makefile.objs | 2 +- hw/i386/xen/trace-events | 11 +++ xen-hvm.c => hw/i386/xen/xen-hvm.c | 2 +- stubs/Make

[Qemu-devel] [PATCH 0/3] move xen related files to corresponding xen directory

2017-04-05 Thread Anthony Xu
move xen related files to corresponding xen directory move xen-common.c to hw/xen/ move xen-hvm.c to hw/i386/xen/ move xen-mapcache.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Makefile.target | 6 -- default-config