Re: [Qemu-devel] [PATCH COLO-Frame v11 08/39] migration: Rename the'file' member of MigrationState

2015-12-09 Thread Wen Congyang
On 11/24/2015 05:25 PM, zhanghailiang wrote: > Rename the 'file' member of MigrationState to 'to_dst_file'. > > Signed-off-by: zhanghailiang > Cc: Dr. David Alan Gilbert > --- > v11: > - Only rename 'file' member of MigrationState You forgot to update migration/rdma.c. Thanks Wen Congyang > -

[Qemu-devel] [RFC PATCH v0 6/9] cpu: Introduce CPU core device

2015-12-09 Thread Bharata B Rao
CPU core device is a container of CPU thread devices. Core device links to the backend socket object. All the cores within a socket defined in the topology specification will link to the same socket object. CPU hotplug is performed in the granularity of CPU core device. When hotplugged, CPU core cr

[Qemu-devel] [RFC PATCH v0 9/9] pc: Convert boot CPUs into CPU core device initialization

2015-12-09 Thread Bharata B Rao
Initialize boot CPUs specified with -smp option as CPU core devices. Signed-off-by: Bharata B Rao --- hw/i386/pc.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 80a4d98..661e577 100644 --- a/hw/i386/pc.c +++

[Qemu-devel] [RFC PATCH v0 5/9] vl: Create CPU socket backend objects

2015-12-09 Thread Bharata B Rao
Create as many CPU socket objects as necessary to contain the max_cpus. Signed-off-by: Bharata B Rao --- vl.c | 13 + 1 file changed, 13 insertions(+) diff --git a/vl.c b/vl.c index e656f53..83d08c6 100644 --- a/vl.c +++ b/vl.c @@ -124,6 +124,7 @@ int main(int argc, char **argv) #i

[Qemu-devel] [RFC PATCH v0 7/9] spapr: Convert boot CPUs into CPU core device initialization

2015-12-09 Thread Bharata B Rao
Initialize boot CPUs specified with -smp option as CPU core devices. Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index db441f2..9499871 100644 --- a/hw/ppc/spa

[Qemu-devel] [RFC PATCH v0 3/9] cpu: Don't realize CPU from cpu_generic_init()

2015-12-09 Thread Bharata B Rao
Don't do CPU realization from cpu_generic_init(). With this cpu_generic_init() can be used from instance_init to just create CPU threads and they could be realized separately from realizefn call. Convert the existing callers to do explicit realization. Signed-off-by: Bharata B Rao --- qom/cpu.c

[Qemu-devel] [RFC PATCH v0 8/9] target-i386: Set apic_id during CPU initfn

2015-12-09 Thread Bharata B Rao
Move back the setting of apic_id to instance_init routine (x86_cpu_initfn) This is needed to initialize X86 CPUs using generic cpu-package device. TODO: I am not fully aware of the general direction in which apic_id changes in X86 have evolved and hence not sure if this is indeed aligned with the

[Qemu-devel] [RFC PATCH v0 4/9] cpu: CPU socket backend

2015-12-09 Thread Bharata B Rao
Backend object for CPU socket. TODO: Prevent creation of socket objects beyond what is needed by max_cpus so that all the required socket objects are pre-created and user can't ever add a socket slot. Signed-off-by: Bharata B Rao --- hw/cpu/Makefile.objs| 1 + hw/cpu/socket.c | 48

[Qemu-devel] [RFC PATCH v0 0/9] Generic cpu-core device

2015-12-09 Thread Bharata B Rao
Hi, This is an attempt to define a generic CPU device that serves as a containing device to underlying arch-specific CPU devices. The motivation for this is to have an arch-neutral way to specify CPUs mainly during hotplug. Instead of individual archs having their own semantics to specify the CPU

[Qemu-devel] [RFC PATCH v0 2/9] cpu: Store CPU typename in MachineState

2015-12-09 Thread Bharata B Rao
Storing CPU typename in MachineState lets us to create CPU threads for all architectures in uniform manner from arch-neutral code. TODO: Touching only i386 and spapr targets for now Signed-off-by: Bharata B Rao --- hw/i386/pc.c| 1 + hw/ppc/spapr.c | 2 ++ include/hw/boards.h | 1 +

[Qemu-devel] [RFC PATCH v0 1/9] vl: Don't allow CPU toplogies with partially filled cores

2015-12-09 Thread Bharata B Rao
Prevent guests from booting with CPU topologies that have partially filled CPU cores or can result in partially filled CPU cores after CPU hotplug like -smp 15,sockets=1,cores=4,threads=4,maxcpus=16 or -smp 15,sockets=1,cores=4,threads=4,maxcpus=17 or Signed-off-by: Bharata B Rao --- vl.c | 13

Re: [Qemu-devel] [Patch v8 0/3] qapi: child add/delete support

2015-12-09 Thread Wen Congyang
Kevin: ping On 11/27/2015 02:06 PM, Wen Congyang wrote: > If quorum's child is broken, we can use mirror job to replace it. > But sometimes, the user only need to remove the broken child, and > add it later when the problem is fixed. > > It is based on the Kevin's child name related patch: > http

[Qemu-devel] what is the plan for seabios merged into qemu?

2015-12-09 Thread Han, Huaitong
Hi, Gerd I find pc-bios/bios-256k.bin has not been updated for a long time, even seabios is released a new version, what is the plan for seabios merged into qemu? Thanks Huaitong.

Re: [Qemu-devel] HTTP access to QEMU Git repositories

2015-12-09 Thread Anthony Liguori
On Dec 9, 2015 6:14 PM, "Stefan Hajnoczi" wrote: > > On Wed, Dec 09, 2015 at 06:07:07PM +0100, Paolo Bonzini wrote: > > On 09/12/2015 17:37, Kai Noda wrote: > > > Those auxiliary repositories referenced by git-submodule, such as > > > dtc.git in my last email, are only available on git.qemu.org >

Re: [Qemu-devel] [PATCH v2 1/1] target-ppc: Implement rtas_get_sysparm(PROCESSOR_MODULE_INFO)

2015-12-09 Thread David Gibson
On Fri, Dec 04, 2015 at 05:04:16PM -0800, Nishanth Aravamudan wrote: > On 01.12.2015 [14:41:25 +1100], David Gibson wrote: > > On Thu, Nov 12, 2015 at 08:46:27AM -0800, Nishanth Aravamudan wrote: > > > On 12.11.2015 [15:47:15 +1100], David Gibson wrote: > > > > On Wed, Nov 11, 2015 at 02:10:48PM -0

Re: [Qemu-devel] [PATCH v9 0/5] implement vNVDIMM

2015-12-09 Thread Xiao Guangrong
New version, new week, and unfortunate new ping... :( On 12/02/2015 03:20 PM, Xiao Guangrong wrote: This patchset can be found at: https://github.com/xiaogr/qemu.git nvdimm-v9 It is based on pci branch on Michael's tree and the top commit is: commit 0c73277af7 (vhost-user-test: fix cra

Re: [Qemu-devel] live migration vs device assignment (motivation)

2015-12-09 Thread Lan, Tianyu
On 12/10/2015 1:14 AM, Alexander Duyck wrote: On Wed, Dec 9, 2015 at 8:26 AM, Lan, Tianyu wrote: For other kind of devices, it's hard to work. We are also adding migration support for QAT(QuickAssist Technology) device. QAT device user case introduction. Server, networking, big data, and st

Re: [Qemu-devel] live migration vs device assignment (motivation)

2015-12-09 Thread Lan, Tianyu
On 12/10/2015 4:07 AM, Michael S. Tsirkin wrote: On Thu, Dec 10, 2015 at 12:26:25AM +0800, Lan, Tianyu wrote: On 12/8/2015 12:50 AM, Michael S. Tsirkin wrote: I thought about what this is doing at the high level, and I do have some value in what you are trying to do, but I also think we need t

Re: [Qemu-devel] [PATCH 2/2] configure: fix trace backend check

2015-12-09 Thread Eric Blake
On 12/09/2015 05:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Found thanks to shellcheck! > > Signed-off-by: Marc-André Lureau > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake > > diff --git a/configure b/configure

Re: [Qemu-devel] [PATCH 1/2] configure: remove unused or undefined variables

2015-12-09 Thread Eric Blake
On 12/09/2015 05:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Found thanks to shellcheck! When sending two or more patches in a series, it's best to also include a 0/2 cover letter. It doesn't matter how trivial the patches are; series are handled better by the toolin

Re: [Qemu-devel] [PATCH] configure: remove bashism (since 2010)

2015-12-09 Thread Eric Blake
On 12/09/2015 05:57 PM, Marc-André Lureau wrote: > Hi > > On Thu, Dec 10, 2015 at 1:53 AM, wrote: >> From: Marc-André Lureau >> >> "type" is not POSIX shell, but a bashism. (found thanks to shellcheck) >> > > A subsidiary question is whether qemu really care about using POSIX > shell, or we ca

Re: [Qemu-devel] [PATCH] configure: remove bashism (since 2010)

2015-12-09 Thread Eric Blake
On 12/09/2015 05:53 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > "type" is not POSIX shell, but a bashism. (found thanks to shellcheck) NACK. 'type' is POSIX, and shellcheck is buggy. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html > > Signed-off-b

Re: [Qemu-devel] HTTP access to QEMU Git repositories

2015-12-09 Thread Stefan Hajnoczi
On Wed, Dec 09, 2015 at 06:07:07PM +0100, Paolo Bonzini wrote: > On 09/12/2015 17:37, Kai Noda wrote: > > Those auxiliary repositories referenced by git-submodule, such as > > dtc.git in my last email, are only available on git.qemu.org > > . > > Hmm, that should be fixed but

Re: [Qemu-devel] [PATCH 23/74] acpi: extend aml_and() to accept target argument

2015-12-09 Thread Shannon Zhao
On 2015/12/10 7:41, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > hw/acpi/aml-build.c | 4 ++-- > hw/arm/virt-acpi-build.c| 2 +- > hw/i386/acpi-build.c| 8 +--- > include/hw/acpi/aml-build.h | 2 +- > 4 files changed, 9 insertions(+), 7 deletions(-) > > d

Re: [Qemu-devel] [PATCH 07/74] acpi: aml: add helper for Opcode Arg2 Arg2 [Dst] AML pattern

2015-12-09 Thread Shannon Zhao
On 2015/12/10 7:41, Igor Mammedov wrote: > Currently AML API doesn't compose terms in form of > following pattern: > >Opcode Arg2 Arg2 [Dst] > > but ASL used in piix4/q35 DSDT ACPI tables uses that > form, so for clean conversion of it, AML API should > be able to handle an optional 'Dst' a

Re: [Qemu-devel] [PATCH 24/74] acpi: extend aml_interrupt() to support multiple irqs

2015-12-09 Thread Shannon Zhao
On 2015/12/10 7:41, Igor Mammedov wrote: > static void acpi_dsdt_add_virtio(Aml *scope, > const MemMapEntry *virtio_mmio_memmap, > - int mmio_irq, int num) > + uint32_t mmio_irq, int num) > { >

Re: [Qemu-devel] [v3 1/3] cutils: add avx2 instruction optimization

2015-12-09 Thread Li, Liang Z
> On 12/09/2015 01:32 AM, Li, Liang Z wrote: > > I think you means the ' __attribute__((target("avx2")))', I have tried this > way, the issue here is: > > without the ' -mavx2' option for gcc, there are compiling error: > > '__m256i undeclared', the __attribute__((target("avx2"))) can't solve thi

Re: [Qemu-devel] subpage_write() and duplicated memory_region_ops_write tracepoints

2015-12-09 Thread Hollis Blanchard
On 12/09/2015 01:12 PM, Paolo Bonzini wrote: On 09/12/2015 21:54, Hollis Blanchard wrote: #0 trace_memory_region_ops_write (mr=0x185b620, addr=16, absaddr=738205712, value=136, size=4) at /scratch1/hblancha/install/customq/qemu-2.4.0/src/trace/generated-tracers.h:7374 #1 0x004

Re: [Qemu-devel] [PATCH] configure: remove bashism (since 2010)

2015-12-09 Thread Marc-André Lureau
Hi On Thu, Dec 10, 2015 at 1:53 AM, wrote: > From: Marc-André Lureau > > "type" is not POSIX shell, but a bashism. (found thanks to shellcheck) > A subsidiary question is whether qemu really care about using POSIX shell, or we can just depend on bashism. That would help with simplifying some M

[Qemu-devel] [PATCH] configure: remove bashism (since 2010)

2015-12-09 Thread marcandre . lureau
From: Marc-André Lureau "type" is not POSIX shell, but a bashism. (found thanks to shellcheck) Signed-off-by: Marc-André Lureau --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index ba57b3f..90eff82 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 2/2] configure: fix trace backend check

2015-12-09 Thread marcandre . lureau
From: Marc-André Lureau Found thanks to shellcheck! Signed-off-by: Marc-André Lureau --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 6a971a2..ba57b3f 100755 --- a/configure +++ b/configure @@ -4816,7 +4816,7 @@ echo "libcap-ng suppo

[Qemu-devel] [PATCH 1/2] configure: remove unused or undefined variables

2015-12-09 Thread marcandre . lureau
From: Marc-André Lureau Found thanks to shellcheck! Signed-off-by: Marc-André Lureau --- configure | 6 -- 1 file changed, 6 deletions(-) diff --git a/configure b/configure index b55dcdd..6a971a2 100755 --- a/configure +++ b/configure @@ -3994,7 +3994,6 @@ EOF fi # check for smartcard

Re: [Qemu-devel] subpage_write() and duplicated memory_region_ops_write tracepoints

2015-12-09 Thread Hollis Blanchard
On 12/09/2015 01:12 PM, Paolo Bonzini wrote: On 09/12/2015 21:54, Hollis Blanchard wrote: #0 trace_memory_region_ops_write (mr=0x185b620, addr=16, absaddr=738205712, value=136, size=4) at /scratch1/hblancha/install/customq/qemu-2.4.0/src/trace/generated-tracers.h:7374 #1 0x0045e

[Qemu-devel] [PATCH 0/1] m68k linux user-space emulation fix (with sign-off this time)

2015-12-09 Thread Michael Karcher
This patch fixes cmake blocking on m68k when starting the second child process. cmake relies on getting SIGCHLD to know when the child process finished, and the uninitialised sigmask set on return of the first SIGCHLD oftentimes blocked the second SIGCHLD. The patch has been created against Laure

[Qemu-devel] [PATCH 1/1] Fix do_rt_sigreturn on m68k linux userspace emulation

2015-12-09 Thread Michael Karcher
do_rt_sigreturn forgets to initialize the signal mask variable before trying to use it to restore the mask, so the signal mask is undefined after do_rt_sigreturn. This bug has been in all the time since 7181155d when do_rt_sigreturn was implemented for m68k. --- linux-user/signal.c | 5 - 1 fi

Re: [Qemu-devel] [Patch V0] x86, mce: Basic support to add LMCE support to QEMU

2015-12-09 Thread Raj, Ashok
On Wed, Dec 09, 2015 at 10:07:48PM +0100, Paolo Bonzini wrote: > > > On 09/12/2015 20:57, Ashok Raj wrote: > > +/* > > + * We need to read back the value of MSREXT_MCG_CTL that was set by the > > + * guest kernel back into Qemu > > + */ > > +cs->kvm_vcpu_dirty = false; > > +

[Qemu-devel] [Patch V0] This patch adds some support required for KVM in order to support LMCE.

2015-12-09 Thread Ashok Raj
- Add support for MSR_IA32_MCG_EXT_CTL - Add MCG_LMCE_P to KVM_MCE_CAP_SUPPORTED - Changes to IA32_FEATURE_CONTROL, allow this MSR to be defined just not for nested VMM, but now its required for Local MCE. Reviewed-by: Andi Kleen Reviewed-by: Tony Luck Tested-by: Gong Chen Signed-off-by: Asho

[Qemu-devel] [PATCH 1/1] Fix do_rt_sigreturn on m68k linux userspace emulation

2015-12-09 Thread Michael Karcher
do_rt_sigreturn forgets to initialize the signal mask variable before trying to use it to restore the mask, so the signal mask is undefined after do_rt_sigreturn. This bug has been in all the time since 7181155d when do_rt_sigreturn was implemented for m68k. Signed-off-by: Michael Karcher --- li

[Qemu-devel] [Bug 1524546] [NEW] qemu-img rebase error message mentions wrong file name

2015-12-09 Thread Surojit Pathak
Public bug reported: While doing 'qemu-img rebase' for linking to a different backing file, if the old backing file does not exist, the command fails. During this failure, the error message shown is misleading. e.g. qemu-img rebase -b throws error saying "Could not open " Ideally it should "C

[Qemu-devel] [Patch V0] x86, mce: Basic support to add LMCE support to QEMU

2015-12-09 Thread Ashok Raj
This patch adds basic enumeration, control msr's required to support Local Machine Check Exception Support (LMCE). - Added Local Machine Check definitions, changed MCG_CAP - Added support for IA32_FEATURE_CONTROL. - When delivering MCE to guest, we deliver to just a single CPU when guest OS has

[Qemu-devel] [PATCH 74/74] pc: acpi: remove unused ASL templates and related blobs/utils

2015-12-09 Thread Igor Mammedov
QEMU now uses internally composed DSDT so drop now empty *.dsl templates and related *.generated binary blobs. Also since templates are not used anymore/obolete remove utility scripts used for extracting/patching AML blobs compiled by IASL and for updating them in git tree. Signed-off-by: Igor Ma

[Qemu-devel] [PATCH 67/74] pc: acpi: q35: move PRTA routing table into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 61 +++ hw/i386/q35-acpi-dsdt.dsl | 57 --- 2 files changed, 61 insertions(+), 57 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c

[Qemu-devel] [PATCH 65/74] pc: acpi: q35: move ISA bridge into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 54 +++ hw/i386/q35-acpi-dsdt.dsl | 46 2 files changed, 54 insertions(+), 46 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c in

[Qemu-devel] [PATCH 66/74] pc: acpi: q35: move _PRT() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 21 + hw/i386/q35-acpi-dsdt.dsl | 12 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 876605d..744f047 100644 --- a/hw/i386/acpi-build.c

[Qemu-devel] [PATCH 62/74] pc: acpi: q35: move link devices to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 9 + hw/i386/q35-acpi-dsdt.dsl | 40 2 files changed, 17 insertions(+), 32 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 75a46c7..51a07eb 100644 --- a/hw/i

[Qemu-devel] [PATCH 64/74] pc: acpi: q35: move IQST() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 25 +++-- hw/i386/q35-acpi-dsdt.dsl | 8 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index a4c2b43..2f0b9b7 100644 --- a/hw/i386/acpi-build.c

[Qemu-devel] [PATCH 60/74] pc: acpi: piix4: acpi move PCI0 device to SSDT

2015-12-09 Thread Igor Mammedov
leave Scope(\_SB) definition in DSDT so that iasl would be able to compile DSDT since we are still need definition block for table. After Q35 ASL is converted, DSDT templates will be completly replaced by AML API generated tables. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 8 ++

[Qemu-devel] [PATCH 57/74] pc: acpi: piix4: move IQST() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 10 ++ hw/i386/acpi-dsdt.dsl | 9 - 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 2720262..cf98037 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-bui

[Qemu-devel] [PATCH 56/74] pc: acpi: piix4: move IQCR() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 20 hw/i386/acpi-dsdt.dsl | 11 --- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index f5e519b..2720262 100644 --- a/hw/i386/acpi-build.c +++ b/hw/

[Qemu-devel] [PATCH 54/74] pc: acpi: move remaining GPE handlers into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 26 +- hw/i386/acpi-dsdt.dsl | 40 hw/i386/q35-acpi-dsdt.dsl | 36 3 files changed, 25 insertions(+), 77 deletions(-) diff --git

[Qemu-devel] [PATCH 53/74] pc: acpi: move PIIX4 isa-bridge and pm devices into SSDT

2015-12-09 Thread Igor Mammedov
and also move PRQx fields declaration as it can't be split out into separate patch since fields use PCI0.ISA.P40C operation region and OperationRegion must be declared in the same table as a Field that uses it. If this condition is not statisfied Windows will BSOD ans IASL (make check) will error o

[Qemu-devel] [PATCH 45/74] pc: acpi: move HPET from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 53 ++ hw/i386/acpi-dsdt-hpet.dsl | 48 - hw/i386/acpi-dsdt.dsl | 2 -- hw/i386/q35-acpi-dsdt.dsl | 3 --- hw/timer/hpet.c| 2 +-

[Qemu-devel] [PATCH 44/74] pc: acpi: factor out cpu hotplug code from build_ssdt() into separate function

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 174 --- 1 file changed, 94 insertions(+), 80 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 7ca38f0..72883ad 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-

[Qemu-devel] [PATCH 73/74] pc: acpi: switch to AML API composed DSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 228 +-- 1 file changed, 112 insertions(+), 116 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 4808a53..36c5a4e 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acp

[Qemu-devel] [PATCH 48/74] pc: acpi: move KBD device from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 20 ++-- hw/i386/acpi-dsdt-isa.dsl | 12 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 55bb466..c485530 100644 --- a/hw/i386/acpi-build.c

[Qemu-devel] [PATCH 43/74] pc: acpi: cpuhp: move \_GPE._E02() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/cpu_hotplug_acpi_table.c | 2 +- hw/i386/acpi-build.c | 12 +--- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 23 --- hw/i386/acpi-dsdt.dsl | 9 - hw/i386/q35-acpi-dsdt.dsl | 9 - incl

[Qemu-devel] [PATCH 72/74] pc: acpi: q35: PCST, PCSB opregions and PCIB field into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 10 ++ hw/i386/q35-acpi-dsdt.dsl | 5 - 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index b546516..4808a53 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi

[Qemu-devel] [PATCH 70/74] pc: acpi: q35: move PCI0._OSC() method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 56 ++ hw/i386/q35-acpi-dsdt.dsl | 57 --- 2 files changed, 56 insertions(+), 57 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-buil

[Qemu-devel] [PATCH 61/74] pc: acpi: q35: move GSI links to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 47 +++ hw/i386/q35-acpi-dsdt.dsl | 34 -- 2 files changed, 55 insertions(+), 26 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 4b

[Qemu-devel] [PATCH 42/74] pc: acpi: cpuhp: move PRSC() method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/cpu_hotplug_acpi_table.c | 55 +++ hw/i386/acpi-build.c | 2 +- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 39 +-- hw/i386/acpi-dsdt.dsl | 2 +- hw/i386/q35-acpi-dsdt.dsl

[Qemu-devel] [PATCH 71/74] pc: acpi: q35: move PCI0 device definition into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 14 +- hw/i386/q35-acpi-dsdt.dsl | 13 - 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 59041b3..b546516 100644 --- a/hw/i386/acpi-build.c +++ b/

[Qemu-devel] [PATCH 41/74] pc: acpi: cpuhp: move CPST() method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/cpu_hotplug_acpi_table.c | 18 ++ hw/i386/acpi-build.c | 3 ++- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 12 include/hw/acpi/cpu_hotplug.h | 1 + 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/h

[Qemu-devel] [PATCH 69/74] pc: acpi: q35: move _PIC() method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 8 hw/i386/q35-acpi-dsdt.dsl | 10 -- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index b54fb0a..bd8d864 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/a

[Qemu-devel] [PATCH 52/74] pc: acpi: move COM devices from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 27 ++-- hw/i386/acpi-dsdt-isa.dsl | 52 --- hw/i386/acpi-dsdt.dsl | 3 --- hw/i386/q35-acpi-dsdt.dsl | 3 --- 4 files changed, 21 insertions(+), 64 deletions(-) del

[Qemu-devel] [PATCH 37/74] pc: acpi: memhp: drop not needed stringify(MEMORY_foo) usage

2015-12-09 Thread Igor Mammedov
most of MEMORY_foo defines are not shared with ASL anymore and are used only inside of memory_hotplug_acpi_table.c, so move them there and make them strings. As result we can replace stringify(MEMORY_foo) with just MEMORY_foo, which makes code a bit cleaner. No AML change introduced by this patch.

[Qemu-devel] [PATCH 47/74] pc: acpi: move RTC device from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 27 +++ hw/i386/acpi-dsdt-isa.dsl | 9 - 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 4b7229d..55bb466 100644 --- a/hw/i386/acpi-build

[Qemu-devel] [PATCH 68/74] pc: acpi: q35: move PRTP routing table into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 2 ++ hw/i386/q35-acpi-dsdt.dsl | 79 --- 2 files changed, 2 insertions(+), 79 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 0008d9f..b54fb0a 100644 --- a/hw/i3

[Qemu-devel] [PATCH 36/74] pc: acpi: memhp: move \_GPE._E03 into SSDT

2015-12-09 Thread Igor Mammedov
in addition remove no longer needed acpi-dsdt-mem-hotplug.dsl. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 6 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 16 hw/i386/acpi-dsdt.dsl | 5 - hw/i386/q35-acpi-dsdt.dsl | 5 - incl

[Qemu-devel] [PATCH 58/74] pc: acpi: piix4: move PCI0._PRT() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 83 +++ hw/i386/acpi-dsdt.dsl | 60 - 2 files changed, 83 insertions(+), 60 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index cf9

[Qemu-devel] [PATCH 40/74] pc: acpi: cpuhp: move CPMA() method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/cpu_hotplug_acpi_table.c | 23 +++ hw/i386/acpi-build.c | 5 +++-- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 13 - include/hw/acpi/cpu_hotplug.h | 2 ++ 4 files changed, 28 insertions(+), 15 deletions(-) diff

[Qemu-devel] [PATCH 63/74] pc: acpi: q35: move IQCR() into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 51 ++- hw/i386/q35-acpi-dsdt.dsl | 9 - 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 51a07eb..a4c2b43 100644 ---

[Qemu-devel] [PATCH 33/74] pc: acpi: memhp: move MHPD.MCRS method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 85 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 72 --- 2 files changed, 85 insertions(+), 72 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acp

[Qemu-devel] [PATCH 35/74] pc: acpi: factor out memhp code from build_ssdt() into separate function

2015-12-09 Thread Igor Mammedov
before consolidating memhp code in memory_hotplug_acpi_table.c and for simplifying review, first factor out memhp code into new function build_memory_devices() in i386/acpi-build.c Signed-off-by: Igor Mammedov PS: no functional change, only code movement. --- hw/i386/acpi-build.c | 239 +

[Qemu-devel] [PATCH 59/74] pc: acpi: piix4: move remaining PCI hotplug bits into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 43 +++ hw/i386/acpi-dsdt.dsl | 40 2 files changed, 43 insertions(+), 40 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index f0966b8.

[Qemu-devel] [PATCH 50/74] pc: acpi: move FDC0 device from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 38 -- hw/i386/acpi-dsdt-isa.dsl | 18 -- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index e5ec6af..2f0f2e1 100644 ---

[Qemu-devel] [PATCH 34/74] pc: acpi: memhp: move MHPD Device into SSDT

2015-12-09 Thread Igor Mammedov
move remnants of MHPD device from DSDT into SSDT. i.e. Device(MHPD), _UID, _HID Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 6 +- hw/i386/acpi-dsdt-mem-hotplug.dsl | 7 --- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/hw/acpi/memory_hotplug

[Qemu-devel] [PATCH 55/74] pc: acpi: pci: move link devices into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 77 +++ hw/i386/acpi-dsdt.dsl | 49 2 files changed, 82 insertions(+), 44 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 99c0294.

[Qemu-devel] [PATCH 31/74] pc: acpi: memhp: move MHPD.MOST method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 15 +++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 10 -- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c index 92591f6

[Qemu-devel] [PATCH 46/74] pc: acpi: move DBUG() from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 36 hw/i386/acpi-dsdt-dbug.dsl | 41 - hw/i386/acpi-dsdt.dsl | 2 -- hw/i386/q35-acpi-dsdt.dsl | 2 -- 4 files changed, 36 insertions(+), 45 deletions

[Qemu-devel] [PATCH 30/74] pc: acpi: memhp: move MHPD.MPXM method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 14 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 9 - 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c index b76694d..9

[Qemu-devel] [PATCH 51/74] pc: acpi: move LPT device from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 6 ++ hw/i386/acpi-dsdt-isa.dsl | 16 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 2f0f2e1..bd03491 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i3

[Qemu-devel] [PATCH 32/74] pc: acpi: memhp: move MHPD.MEJ0 method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 13 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 8 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c index 5dfdab7..979

[Qemu-devel] [PATCH 39/74] pc: acpi: cpuhp: move CPEJ() method to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/Makefile.objs | 2 +- hw/acpi/cpu_hotplug_acpi_table.c | 28 hw/i386/acpi-build.c | 3 ++- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 4 include/hw/acpi/cpu_hotplug.h | 5 + 5 files changed,

[Qemu-devel] [PATCH 27/74] pc: acpi: memhp: move MHPD.MLCK mutex into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 2 ++ hw/i386/acpi-dsdt-mem-hotplug.dsl | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c index de51717..d389f73 100644 --- a/h

[Qemu-devel] [PATCH 24/74] acpi: extend aml_interrupt() to support multiple irqs

2015-12-09 Thread Igor Mammedov
ASL Interrupt() macro translates to Extended Interrupt Descriptor which supports variable number of IRQs. It will be used for conversion of ASL code for pc/q35 machines that use it for returning several IRQs in _PSR object. Signed-off-by: Igor Mammedov --- CC: zhaoshengl...@huawei.com CC: qemu-..

[Qemu-devel] [PATCH 29/74] pc: acpi: memhp: move MHPD.MRST method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 21 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 15 --- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c in

[Qemu-devel] [PATCH 49/74] pc: acpi: move MOU device from DSDT to SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 5 + hw/i386/acpi-dsdt-isa.dsl | 10 -- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index c485530..e5ec6af 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi

[Qemu-devel] [PATCH 26/74] pc: acpi: memhp: move MHPD._STA method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 12 hw/i386/acpi-dsdt-mem-hotplug.dsl | 8 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_hotplug_acpi_table.c index 25bbf5e..de51

[Qemu-devel] [PATCH 38/74] pc: acpi: drop unused CPU_STATUS_LEN from DSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/i386/acpi-dsdt-cpu-hotplug.dsl b/hw/i386/acpi-dsdt-cpu-hotplug.dsl index 1aff746..53e1389 100644 --- a/hw/i386/acpi-dsdt-cpu-hotplug.dsl +++ b/hw/i386/acpi-dsdt-cpu-hotplug.ds

[Qemu-devel] [PATCH 28/74] pc: acpi: memhp: move MHPD.MSCN method into SSDT

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/memory_hotplug_acpi_table.c | 48 + hw/i386/acpi-dsdt-mem-hotplug.dsl | 27 + 2 files changed, 49 insertions(+), 26 deletions(-) diff --git a/hw/acpi/memory_hotplug_acpi_table.c b/hw/acpi/memory_h

[Qemu-devel] [PATCH 17/74] acpi: add aml_lgreater()

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 8cfa65c..b22e7da 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -715,6 +715

[Qemu-devel] [PATCH 23/74] acpi: extend aml_and() to accept target argument

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 4 ++-- hw/arm/virt-acpi-build.c| 2 +- hw/i386/acpi-build.c| 8 +--- include/hw/acpi/aml-build.h | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 4

[Qemu-devel] [PATCH 22/74] acpi: extend aml_or() to accept target argument

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 4 ++-- hw/arm/virt-acpi-build.c| 6 +++--- hw/i386/acpi-build.c| 3 ++- include/hw/acpi/aml-build.h | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 83

[Qemu-devel] [PATCH 25/74] pc: acpi: memhp: prepare context in SSDT for moving memhp DSDT code

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/Makefile.objs | 2 +- hw/acpi/memory_hotplug_acpi_table.c | 40 + hw/i386/acpi-build.c| 3 +++ include/hw/acpi/memory_hotplug.h| 4 4 files changed, 48 insertions(+), 1 deletion(

[Qemu-devel] [PATCH 15/74] acpi: support serialized method

2015-12-09 Thread Igor Mammedov
From: Xiao Guangrong Add serialized method support so that explicit Mutex can be avoided Signed-off-by: Xiao Guangrong Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 17 +++-- hw/arm/virt-acpi-build.c| 10 +- hw/i386/acpi-build.c| 41 +++

[Qemu-devel] [PATCH 20/74] acpi: add aml_to_buffer()

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 13 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 14 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index c025801..4b1b496 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -449,

[Qemu-devel] [PATCH 21/74] acpi add aml_dma()

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 20 2 files changed, 34 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 4b1b496..8347299 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/

[Qemu-devel] [PATCH 10/74] acpi: add aml_call0() helper

2015-12-09 Thread Igor Mammedov
it will help to call a method with 0 arguments Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index ee34771..50587de 100644 --- a/hw/acpi/aml-bu

[Qemu-devel] [PATCH 19/74] acpi: add aml_to_hexstring()

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 13 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 14 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 7500474..c025801 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -436,

[Qemu-devel] [PATCH 18/74] acpi: extend aml_field() to support LockRule

2015-12-09 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 5 - hw/i386/acpi-build.c| 10 +- include/hw/acpi/aml-build.h | 8 +++- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index b22e7da..7500474 100644

  1   2   3   >