Andreas Färber writes:
> Am 22.07.2013 23:03, schrieb Seiji Aguchi:
>> Convert stderr messages calling error_get_pretty()
>> to error_report().
>>
>> Timestamp is prepended by -msg timstamp option with it.
>>
>> This is suggested by Luiz Capitulino.
>>
>> http://marc.info/?l=qemu-devel&m=13733
Il 23/07/2013 03:52, Wenchao Xia ha scritto:
> >Dirty change tracking is what miss for a full solution, which
> > naturally exist in backing chain snapshot.
>
> Any one is doing dirty tracking feature? If no, I'd like to draft a
> version based on add-cow.
I had started it, I can dig it up.
Il 23/07/2013 03:05, Libaiqing ha scritto:
> Hi paolo,
> Recently I test trim function,and it works well in linux guest with ext4
> fs.
>
> How to test it in windows guest? I got some info like this:
> 1 windows7 can send discard command when the storage device is ssd;
> 2 fi
Il 22/07/2013 19:27, Peter Maydell ha scritto:
> On 22 July 2013 17:36, Andreas Färber wrote:
>> Signed-off-by: Andreas Färber
>> ---
>> HACKING | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/HACKING b/HACKING
>> index e73ac79..d9dbb46 100644
>> --- a/HACKING
>> +++ b/HACKING
>> @@
Hi
Please, send any topic that you are interested in covering.
Thanks, Juan.
PD. If you want to attend and you don't have the call details,
contact me.
On Tue, Jul 23, 2013 at 12:41 AM, Rob Landley wrote:
> On 07/23/2013 12:16:53 AM, Renich Bon Ciric wrote:
>>
>> Hello,
>>
>> I am new to this...
>>
>> I'm trying to run some rom file I got from a client. It's a sc2005
>> processor; supposedly compatible with 4k.
>>
>> Anyway, I do this:
>>
>> qemu
On Mon, 22 Jul 2013 16:25:35 -0300
Eduardo Habkost wrote:
> Bug description: QEMU currently gets all bits from GET_SUPPORTED_CPUID
> for CPUID leaf 0xA and passes them directly to the guest. This makes
> the guest ABI depend on host kernel and host CPU capabilities, and
> breaks live migration if
On 07/23/2013 12:16:53 AM, Renich Bon Ciric wrote:
Hello,
I am new to this...
I'm trying to run some rom file I got from a client. It's a sc2005
processor; supposedly compatible with 4k.
Anyway, I do this:
qemu-system-mips -M mips -pflash 301-3100\ -\ user\ specified\ -\
Full.bin -serial stdi
Hello,
I am new to this...
I'm trying to run some rom file I got from a client. It's a sc2005
processor; supposedly compatible with 4k.
Anyway, I do this:
qemu-system-mips -M mips -pflash 301-3100\ -\ user\ specified\ -\
Full.bin -serial stdio
The processor goes to 100% but I see nothing, not
This was dead code.
Signed-off-by: Stefan Weil
---
hw/watchdog/watchdog.c |1 -
1 file changed, 1 deletion(-)
diff --git a/hw/watchdog/watchdog.c b/hw/watchdog/watchdog.c
index cb4e1f9..387962e 100644
--- a/hw/watchdog/watchdog.c
+++ b/hw/watchdog/watchdog.c
@@ -128,7 +128,6 @@ void watchdo
From: Andreas Färber
Signed-off-by: Andreas Färber
---
hw/cpu/a15mpcore.c | 21 +
include/hw/cpu/a15mpcore.h | 44
2 files changed, 45 insertions(+), 20 deletions(-)
create mode 100644 include/hw/cpu/a15mpcore.h
diff --g
From: Peter Maydell
Also extend documentation of target_ulong and abi_ulong.
Signed-off-by: Peter Maydell
Signed-off-by: Andreas Färber
---
HACKING | 19 +--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/HACKING b/HACKING
index e73ac79..12fbc8a 100644
--- a/HA
Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed.
This resolves a NULL pointer dereference of query_cpu, introduced
with commit 182735efaf956ccab50b6d74a4fed163e0f35660 and reported by
TeLeMan and Max Filippov.
Reviewed-by: Richard Henderson
Signed-off-by: Andreas Färber
This adds support for GDB's c addr (Continue) and s addr (Single Step).
Prepares for dropping cpu_pc_from_tb().
Signed-off-by: Andreas Färber
---
target-m68k/cpu.c | 8
1 file changed, 8 insertions(+)
diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c
index 1b6ef66..43011e7 100644
---
Callback implementations were specific to arm and m68k, so can easily
cast to ARMCPU and M68kCPU respectively.
Prepares for changing GDBState::c_cpu to CPUState.
Signed-off-by: Andreas Färber
---
gdbstub.c | 2 +-
include/exec/gdbstub.h | 2 +-
target-arm/arm-semi.c | 8 ++-
Rename NCPU to GIC_NCPU and move GICState away from gic_internal.h.
Signed-off-by: Andreas Färber
---
hw/intc/arm_gic_common.c | 18
hw/intc/gic_internal.h| 77 +
include/hw/intc/arm_gic.h | 108 ++
3 fil
From: Andreas Färber
Introduce type constant and cast macro and rename
ARMMPTimerState::busdev to enforce its use.
Signed-off-by: Andreas Färber
---
hw/timer/arm_mptimer.c | 18 +-
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/hw/timer/arm_mptimer.c b/hw/timer/
Change breakpoint_invalidate() argument to CPUState alongside.
Since all targets now assign a softmmu-only field, we can drop helpers
cpu_class_set_{do_unassigned_access,vmsd}() and device_class_set_vmsd().
Prepares for changing cpu_memory_rw_debug() argument to CPUState.
Acked-by: Max Filippov
Signed-off-by: Andreas Färber
---
gdbstub.c | 7 +++
include/exec/gdbstub.h | 2 +-
target-arm/helper.c | 7 ---
target-m68k/helper.c| 3 ++-
target-ppc/translate_init.c | 15 ---
5 files changed, 18 insertions(+), 16 deletions(-)
di
Use CPUState::env_ptr where still needed.
Signed-off-by: Andreas Färber
---
gdbstub.c | 104 +++---
1 file changed, 52 insertions(+), 52 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index 9e017ed..ee31603 100644
--- a/gdbstub.c
+++ b/gd
Avoids duplicating the calculation.
Reviewed-by: Igor Mammedov
Signed-off-by: Andreas Färber
---
linux-user/cpu-uname.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/linux-user/cpu-uname.c b/linux-user/cpu-uname.c
index 59cd647..cc713e6 100644
--- a/linux-user/c
Prepares for changing gdb_register_coprocessor() argument to CPUState.
Signed-off-by: Andreas Färber
---
gdbstub.c | 11 ++-
include/exec/cpu-defs.h | 2 --
include/qom/cpu.h | 2 ++
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/gdbstub.c b/gdbstub.
Prepares for changing cpu_single_step() argument to CPUState.
Acked-by: Michael Walle (for lm32)
Signed-off-by: Andreas Färber
---
cpu-exec.c| 2 +-
cpus.c| 2 +-
exec.c| 10 ++
include/exec/cpu-defs.h | 1 -
i
Make inline target_memory_rw_debug() always available and change its
argument to CPUState. Let it check if CPUClass::memory_rw_debug provides
a specialized callback and fall back to cpu_memory_rw_debug() otherwise.
The only overriding implementation is for 32-bit sparc.
This prepares for changing
Use CPUState::env_ptr for now.
Prepares for changing GDBState::g_cpu to CPUState.
Signed-off-by: Andreas Färber
---
gdbstub.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/gdbstub.c b/gdbstub.c
index b65682f..848754d 100644
--- a/gdbstub.c
+++ b/gdbstub.c
On Sun, Jul 21, 2013 at 5:55 PM, Alex Bligh wrote:
>
>
> --On 21 July 2013 16:43:03 +0800 Liu Ping Fan wrote:
>
>> diff --git a/aio-posix.c b/aio-posix.c
>> index b68eccd..29c2769 100644
>> --- a/aio-posix.c
>> +++ b/aio-posix.c
>> @@ -191,6 +191,8 @@ bool aio_poll(AioContext *ctx, bool blocking)
CPUArchState is no longer directly used since converting CPU loops to
CPUState.
Prepares for changing GDBState::c_cpu to CPUState.
Signed-off-by: Andreas Färber
---
gdbstub.c| 12
include/sysemu/kvm.h | 4 ++--
kvm-all.c| 10 --
kvm-stub.c
Michael, could you please review the patch as it is about PCI? Thanks!
On 07/12/2013 05:38 PM, Alexey Kardashevskiy wrote:
> On the sPAPR platform a guest allocates MSI/MSIX vectors via RTAS
> hypercalls which return global IRQ numbers to a guest so it only
> operates with those and never touches
Prepares for changing GDBState::c_cpu to CPUState.
Signed-off-by: Andreas Färber
---
bsd-user/main.c| 10 ++
gdbstub.c | 6 +++---
include/exec/gdbstub.h | 2 +-
linux-user/main.c | 35 +++
linux-user/signal.c| 3 ++-
5 fil
Where no extra implementation is needed, fall back to CPUClass::set_pc().
Acked-by: Michael Walle (for lm32)
Signed-off-by: Andreas Färber
---
cpu-exec.c | 8 +++-
include/qom/cpu.h | 5 +
target-alpha/cpu.h | 5 -
target-arm/cpu.h| 5 -
targe
Use CPUState::env_ptr for now.
Needed for GdbState::c_cpu.
Signed-off-by: Andreas Färber
---
exec.c | 4 ++--
gdbstub.c | 9 +
include/exec/cpu-all.h | 6 --
include/qom/cpu.h | 13 +
4 files changed, 20 insertions(+), 12 deletions(-)
In particular reindent to 4 instead of 2 spaces.
Prepares for changing cpu_single_step() argument in gdb_handlesig().
Signed-off-by: Andreas Färber
---
gdbstub.c | 94 +++
1 file changed, 47 insertions(+), 47 deletions(-)
diff --git a
From: Richard Henderson
Which allows removing env from DisasContext.
Signed-off-by: Richard Henderson
Signed-off-by: Andreas Färber
---
target-alpha/translate.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
vaddr is to target_ulong what uintmax_t is to unsigned int.
Its purpose is to allow turning per-target functions with target_ulong
arguments into CPUClass hooks.
Suggested-by: Peter Maydell
Signed-off-by: Andreas Färber
---
include/qom/cpu.h | 12
1 file changed, 12 insertions(+)
From: Richard Henderson
Prepare for removing env from DisasContext.
Signed-off-by: Richard Henderson
Signed-off-by: Andreas Färber
---
target-alpha/translate.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
inde
This moves setting the Program Counter from gdbstub into target code.
Use vaddr type as upper-bound replacement for target_ulong.
Signed-off-by: Andreas Färber
---
gdbstub.c | 39 ++-
include/qom/cpu.h | 2 ++
target-alpha/cpu.c
This adds support for GDB's c addr (Continue) and s addr (Single Step).
Prepares for dropping cpu_pc_from_tb().
Signed-off-by: Andreas Färber
---
target-unicore32/cpu.c | 8
1 file changed, 8 insertions(+)
diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c
index 6572f01..79f
Hello Anthony,
This is my current QOM CPU patch queue for 1.6. Please pull.
CPUArchState: 313 -> 287
Thanks,
Andreas
Cc: Anthony Liguori
Cc: Richard Henderson
Cc: Jia Liu
Cc: Peter Maydell
Cc: Max Filippov
Cc: TeLeMan
Cc: Eduardo Habkost
Cc: Igor Mammedov
Cc: Mike Frysinger
The foll
This adds support for GDB's c addr (Continue) and s addr (Single Step).
Prepares for dropping cpu_pc_from_tb().
Signed-off-by: Andreas Färber
---
target-moxie/cpu.c | 8
1 file changed, 8 insertions(+)
diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c
index 92ca594..91f6197 100644
Propagate X86CPU in kvmvapic for simplicity.
Signed-off-by: Andreas Färber
---
cpus.c | 4 +--
disas.c | 4 +--
exec.c | 6 ++--
gdbstub.c | 2 +-
hw/i386/kvmvapic.c | 72 +++-
On Mon, Jul 22, 2013 at 6:18 PM, liu ping fan wrote:
> On Mon, Jul 22, 2013 at 5:40 PM, Alex Bligh wrote:
>> Liu,
>>
>>
>> --On 22 July 2013 12:38:02 +0800 liu ping fan wrote:
>>
>>> I read your second series, and try to summary the main different between
>>> us. Please correct me, if I misunder
On Mon, Jul 22, 2013 at 2:28 PM, Jan Kiszka wrote:
> On 2013-07-22 06:38, liu ping fan wrote:
>> On Sun, Jul 21, 2013 at 5:53 PM, Alex Bligh wrote:
>>> Liu,
>>>
>>>
>>> --On 21 July 2013 16:42:57 +0800 Liu Ping Fan wrote:
>>>
Currently, the timers run on iothread within BQL, so virtio-block
From: Andreas Färber
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 29 ++-
hw/timer/arm_mptimer.c | 35 ---
include/hw/timer/arm_mptimer.h | 54 ++
3 files
> libvirt's "host-passthrough" uses "-cpu host', and it "-cpu host"
> enables every feature that can be enabled on the host.
>From my test results, I found that even when use host-passthrough mode, VM's
cpu features are very different from host, this doesn't match what
host-passthrough
mode's expl
From: Andreas Färber
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a15mpcore.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c
index 4f37964..c261cea 100644
--- a/hw/cpu/a15mpcore.c
+++ b/hw/cpu/a15
From: Andreas Färber
Turn SysBusDevice initfn into a QOM realizefn.
Signed-off-by: Andreas Färber
---
hw/cpu/a15mpcore.c | 20
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c
index 3f8b07b..ea6568c 100644
--- a/hw/cpu/
From: Andreas Färber
Introduce type constant and cast macro and rename A15MPPrivState::busdev
field to parent_obj to enforce its use.
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a15mpcore.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --g
From: Andreas Färber
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 16 ++--
hw/misc/a9scu.c | 18 +-
include/hw/misc/a9scu.h | 31 +++
3 files changed, 42 insertions(+), 23 deletions(-)
cre
From: Andreas Färber
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 24 +---
include/hw/cpu/a9mpcore.h | 37 +
2 files changed, 38 insertions(+), 23 deletions(-)
create mode 100644 include/hw/cpu/a9mpcore.h
diff --git a/hw
From: Andreas Färber
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 36 ++--
1 file changed, 26 insertions(+), 10 deletions(-)
diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c
index 1dc1e92..5eb1a2f 100644
--- a/hw/cpu/a9mpcore.c
+++ b/hw/cpu/a9mpcore.c
From: Andreas Färber
Hello Peter,
This series fully QOM'ifies A9MPCore so that it can be embedded for Tegra2.
It goes on to do the same for A15MPCore, which had previously been taken as
template for Cortex-A57 by John Rigby.
Separate headers are introduced to only expose device state to whom as
From: Andreas Färber
Rename A9SCUState::busdev field to parent_obj and turn realizefn into an
instance_init function to allow early MMIO mapping.
Reviewed-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/misc/a9scu.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions
From: Andreas Färber
This covers both emulated and KVM GIC.
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a15mpcore.c | 35 ++-
1 file changed, 22 insertions(+), 13 deletions(-)
diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c
index c2
From: Andreas Färber
Prepares for conversion to QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 25 -
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c
index acbdab5..d157387 100644
--- a/hw/cpu/a9mpc
From: Andreas Färber
Prepares for QOM realize.
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c
index 3e675e3..acbdab5 100644
--- a/hw/cpu/a9mpcore.c
+++ b/hw/cpu/a9mpcore.
From: Andreas Färber
Split the SysBusDevice initfn into instance_init and realizefn.
Signed-off-by: Andreas Färber
---
hw/timer/arm_mptimer.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c
index 92
From: Andreas Färber
Introduce type constant and cast macro and enforce its use by
renaming A9MPPrivState::busdev field to parent_obj.
Reviewed-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/cpu/a9mpcore.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
dif
Hi, Marcelo
Thanks for replying.
I noticed that, kvm has emulated x2apic, but I can't find where the code exits.
Could you give me some hint?
Thanks again.
On 2013-07-23 7:55, Marcelo Tosatti wrote:
> Peter,
>
> Because x2apic support is emulated in software.
>
> On Mon, Jul 22, 2013 at 08:36:0
Peter,
Because x2apic support is emulated in software.
On Mon, Jul 22, 2013 at 08:36:05PM +0800, Peter Huang(Peng) wrote:
> I traced the qemu process, and find out that host cpuid doesn't support
> x2apic,
> but VM interception seems enabled x2apic.
>
> with function=1(bit 21 indicates x2apic)
On Mon, 07/22 13:07, Paolo Bonzini wrote:
> Il 22/07/2013 08:48, Fam Zheng ha scritto:
> >> > I have only skimmed the patch, but I think this is incomplete.
> >> > Management needs to know the moment when 'active' is not valid anymore,
> >> > thus this job needs to be completed manually with "block
于 2013-7-19 18:41, Wenchao Xia 写道:
> 于 2013-7-17 17:42, Fam Zheng 写道:
>> This series adds for point-in-time snapshot NBD exporting based on
>> blockdev-backup (variant of drive-backup with existing device as target).
>> This
>> patch is built on top of imain's sync mode patches for drive-backup.
>
This assures the trivial field initialization is applied for any derived
type - currently only Q35PCIHost.
Signed-off-by: Andreas Färber
---
hw/pci-host/q35.c | 4
hw/pci/pcie_host.c | 7 ---
include/hw/pci/pcie_host.h | 1 -
3 files changed, 4 insertions(+), 8 deletion
Replace direct uses of RTL8139State::dev with QOM casts and rename it to
parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/net/rtl8139.c | 88 +++-
1 file changed, 49 insertions(+), 39 deletions(-)
diff --git a/hw/n
From: Hu Tao
And remove variables if possible.
Signed-off-by: Hu Tao
[AF: Converted remaining access and renamed to parent_obj]
Signed-off-by: Andreas Färber
---
hw/i386/pc_q35.c | 4 +++-
hw/pci-host/q35.c | 43 ++-
include/hw/pci-hos
Replace direct uses of PCIESPState::dev with QOM casts and rename it to
parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/scsi/esp-pci.c | 15 +--
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
index ab1
Hi paolo,
Recently I test trim function,and it works well in linux guest with ext4 fs.
How to test it in windows guest? I got some info like this:
1 windows7 can send discard command when the storage device is ssd;
2 find a tool like 'fstrim', 'TRIM' the volume manually.
From: Peter Crosthwaite
Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.
Signed-off-by: Peter Crosthwaite
[AF: Renamed parent field, renamed from PC_NET to PCNET]
Signed-off-by: Andreas Färber
---
hw/net/pcnet-pci.c | 21 ++---
From: Hu Tao
Signed-off-by: Hu Tao
Signed-off-by: Andreas Färber
---
hw/usb/hcd-ohci.c | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c
index 7da2564..2bab8ff 100644
--- a/hw/usb/hcd-ohci.c
+++ b/hw/usb/hcd-ohci.c
@@ -1888
Hello Anthony,
This is my current QOM devices patch queue for 1.6. Please pull.
FROM_SYSBUS(): 188 -> 176
DO_UPCAST(): 468 -> 421
Thanks,
Andreas
Cc: Anthony Liguori
Cc: Peter Maydell
Cc: Peter Crosthwaite
Cc: Hu Tao
Cc: Michael S. Tsirkin (pci)
Cc: Paolo Bonzini (scsi)
Cc: Stefan Hajno
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Tweaked error message]
Signed-off-by: Andreas Färber
---
hw/intc/ioapic_common.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c
index 5c5bb3c..6b705c1 100644
--- a/hw/int
Replace direct uses of AHCIPCIState::card with QOM casts and rename it
to parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/ide/ahci.c | 11 ++-
hw/ide/ahci.h | 5 -
hw/ide/ich.c | 22 +++---
3 files changed, 21 insertions(+), 17 deletion
Am 22.07.2013 19:36, schrieb Peter Maydell:
> On 22 July 2013 18:32, Andreas Färber wrote:
>> Am 22.07.2013 19:27, schrieb Peter Maydell:
>>> Here's my suggestion for this paragraph (ie to replace
>>> both the "Use target_ulong..." and "Use vaddr" sentences
>>> above):
>>>
>>> ===begin===
>>> For
From: Hu Tao
Introduce type constant and avoid DO_UPCAST(), container_of(),
and use DEVICE() to avoid accessing parent qdev directly.
Signed-off-by: Hu Tao
[AF: Renamed parent field and avoided repeated SYS_BUS_DEVICE() casts]
Signed-off-by: Andreas Färber
---
hw/block/fdc.c | 41
Replace direct uses of PCITestDevState::dev with QOM casts and rename it
to parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/misc/pci-testdev.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/hw/misc/pci-testdev.c b/hw/misc/pci-testdev
On Mon, 07/22 13:51, Yaodong Yang wrote:
> Hi everyone,
>
> Previously, I used the qemu-kvm-1.2.0 from
> (http://www.linux-kvm.org/page/Downloads), and it worked well in my ubuntu
> server. Later, I found that some of the implementation(qemu-kvm-1.2.0) is out
> of date, so that I changed to qem
From: Peter Crosthwaite
Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.
Signed-off-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/net/rtl8139.c | 26 ++
1 file changed, 18 insertions(+), 8 deletions(-)
di
From: Hu Tao
Signed-off-by: Hu Tao
Signed-off-by: Andreas Färber
---
hw/i386/kvm/clock.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
index 6265458..e89e2f7 100644
--- a/hw/i386/kvm/clock.c
+++ b/hw/i386/kvm/clock.c
@@ -91,
From: Hu Tao
Signed-off-by: Hu Tao
Signed-off-by: Andreas Färber
---
hw/pci-host/piix.c | 29 +
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c
index 541c8b7..3908860 100644
--- a/hw/pci-host/piix.c
+++ b/hw/pc
From: Hu Tao
Signed-off-by: Hu Tao
Signed-off-by: Andreas Färber
---
hw/block/pflash_cfi02.c | 15 +++
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index d8381dd..9fc02e3 100644
--- a/hw/block/pflash_cfi02.c
+++ b/h
Replace direct uses of LSIState::dev with QOM casts and rename it to
parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/scsi/lsi53c895a.c | 46 +++---
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/hw/scsi/lsi53c
Replace direct uses of XHCIState::pci_dev with QOM casts and rename it
to parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/usb/hcd-xhci.c | 83 ---
1 file changed, 48 insertions(+), 35 deletions(-)
diff --git a/hw/
Let scsi_bus_legacy_add_drive() and scsi_bus_legacy_handle_cmdline()
return an Error**. Prepare qdev initfns for QOM realize error model.
Signed-off-by: Andreas Färber
---
hw/pci/pci-hotplug-old.c | 2 +-
hw/scsi/esp-pci.c| 7 ++-
hw/scsi/esp.c| 6 --
hw/scsi/lsi53
From: Hu Tao
Introduce type constant, avoid FROM_SYSBUS().
Signed-off-by: Hu Tao
[AF: Renamed parent field and renamed variable]
Signed-off-by: Andreas Färber
---
hw/timer/hpet.c | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/hw/timer/hpet.c b/hw/time
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Renamed variable]
Signed-off-by: Andreas Färber
---
hw/i386/kvmvapic.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
index ccd089a..365b219 100644
--- a/hw/i386/kvmvapic.c
+++ b/h
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Avoided SYS_BUS_DEVICE() in loop]
Signed-off-by: Andreas Färber
---
hw/timer/hpet.c | 32 +++-
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c
index 228598f..648b383 100644
---
From: Hu Tao
Use type constant if possible and avoid DO_UPCAST().
Signed-off-by: Hu Tao
[AF: Renamed parent field]
Signed-off-by: Andreas Färber
---
hw/nvram/fw_cfg.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
i
Only apply legacy command line handling when the device has not been
hot-plugged. Propagate failure of legacy command line handling.
Cc: qemu-sta...@nongnu.org
Acked-by: Paolo Bonzini
Signed-off-by: Andreas Färber
---
hw/scsi/megasas.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
From: Hu Tao
Introduce type constant and replace FROM_SYSBUS().
Signed-off-by: Hu Tao
[AF: Renamed parent field]
Signed-off-by: Andreas Färber
---
hw/block/pflash_cfi01.c | 21 -
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/hw/block/pflash_cfi01.c b/hw/bl
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Avoided repeated SYS_BUS_DEVICE() casts]
Signed-off-by: Andreas Färber
---
hw/ide/ahci.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index d76e6eb..419adde 100644
--- a/hw/ide/ahci.c
++
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Drop sysbus_esp_init()]
Signed-off-by: Andreas Färber
---
hw/scsi/esp.c | 19 +++
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index 1a2d72c..c24b632 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi
From: Hu Tao
And split off MemoryRegion initialization into instance_init.
Signed-off-by: Hu Tao
Signed-off-by: Andreas Färber
---
hw/pci-host/q35.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
index
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Renamed SysBusDevice variable]
Signed-off-by: Andreas Färber
---
hw/block/fdc.c | 63 ++
1 file changed, 41 insertions(+), 22 deletions(-)
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
index e5242bf
From: Hu Tao
This works since commit 4ce5dae88ecf2bafa0cd663de7e923728b1b3672.
Signed-off-by: Hu Tao
[AF: Edited]
Signed-off-by: Andreas Färber
---
hw/isa/isa-bus.c | 8
1 file changed, 8 deletions(-)
diff --git a/hw/isa/isa-bus.c b/hw/isa/isa-bus.c
index cfd610c..9e104eb 100644
---
Rename fdctrl_init_common() to fdctrl_realize_common() and let
fdctrl_connect_drives() propagate an Error through it.
Reviewed-by: Hu Tao
Reviewed-by: Stefan Hajnoczi
Signed-off-by: Andreas Färber
---
hw/block/fdc.c | 40 ++--
1 file changed, 22 insertions(+
From: Hu Tao
Signed-off-by: Hu Tao
[AF: Renamed argument]
Signed-off-by: Andreas Färber
---
hw/block/pflash_cfi01.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c
index bfcccdd..2bcd731 100644
--- a/hw/block/pf
From: Hu Tao
Introduce type constant and avoid DO_UPCAST().
Signed-off-by: Hu Tao
[AF: Avoid remaining OHCIPCIState::pci_dev uses, rename parent fields]
Signed-off-by: Andreas Färber
---
hw/usb/hcd-ohci.c | 39 +--
1 file changed, 25 insertions(+), 14 delet
From: Hu Tao
Introduce type constant and avoid DO_UPCAST().
Signed-off-by: Hu Tao
[AF: Renamed parent field]
Signed-off-by: Andreas Färber
---
hw/scsi/esp.c | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index c6166c5..
From: Peter Crosthwaite
Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.
Signed-off-by: Peter Crosthwaite
[AF: Renamed to TYPE_ICH9_AHCI and used typedef in pci_ich9_reset()]
Signed-off-by: Andreas Färber
---
hw/ide/ahci.h | 5 +
hw/ide/
Replace direct uses of IVShmemState::dev with QOM casts and rename it to
parent_obj.
Acked-by: Peter Crosthwaite
Signed-off-by: Andreas Färber
---
hw/misc/ivshmem.c | 37 ++---
1 file changed, 22 insertions(+), 15 deletions(-)
diff --git a/hw/misc/ivshmem.c b/hw
From: Hu Tao
Introduce type constant and avoid FROM_SYSBUS().
Signed-off-by: Hu Tao
[AF: Renamed parent field]
Signed-off-by: Andreas Färber
---
hw/i386/kvm/clock.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
index
1 - 100 of 388 matches
Mail list logo