]> Git Repo - qemu.git/log
qemu.git
7 years agoqemu-options: Remove stray colons from output of --help
Markus Armbruster [Mon, 2 Oct 2017 14:03:00 +0000 (16:03 +0200)]
qemu-options: Remove stray colons from output of --help

Commit 43f187a broke --help: it put colons into blank lines.  It
removed the colon from DEFHEADING(TITLE:) and added it back in the
macro expansion of DEFHEADING(TITLE), so hxtool can emit "@subsection
TITLE" more easily.  Trouble is it's added back even for the blank
lines made with DEFHEADING().

Put the colons back where they were before commit 43f187a, and strip
them in hxtool instead.

Cc: Paolo Bonzini <[email protected]>
CC: [email protected]
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20171002140307[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20171218' into staging
Peter Maydell [Tue, 19 Dec 2017 19:11:11 +0000 (19:11 +0000)]
Merge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20171218' into staging

Queued target/sh4 patches

# gpg: Signature made Mon 18 Dec 2017 22:36:42 GMT
# gpg:                using RSA key 0x1388C0F899E8336B
# gpg: Good signature from "Aurelien Jarno <[email protected]>"
# gpg:                 aka "Aurelien Jarno <[email protected]>"
# gpg:                 aka "Aurelien Jarno <[email protected]>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 7746 2642 A9EF 94FD 0F77  196D BA9C 7806 1DDD 8C9B
#      Subkey fingerprint: 52BC 8695 BE34 F90A D7D4  0CB8 1388 C0F8 99E8 336B

* remotes/aurel/tags/pull-target-sh4-20171218:
  target/sh4: Convert to DisasContextBase
  target/sh4: Do not singlestep after exceptions
  target/sh4: Convert to DisasJumpType
  target/sh4: Use cmpxchg for movco when parallel_cpus
  target/sh4: fix TCG leak during gusa sequence
  target/sh4: add missing tcg_temp_free() in _decode_opc()

Signed-off-by: Peter Maydell <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging
Peter Maydell [Tue, 19 Dec 2017 17:44:42 +0000 (17:44 +0000)]
Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging

# gpg: Signature made Mon 18 Dec 2017 21:05:53 GMT
# gpg:                using RSA key 0xBDBE7B27C0DE3057
# gpg: Good signature from "Jeffrey Cody <[email protected]>"
# gpg:                 aka "Jeffrey Cody <[email protected]>"
# gpg:                 aka "Jeffrey Cody <[email protected]>"
# Primary key fingerprint: 9957 4B4D 3474 90E7 9D98  D624 BDBE 7B27 C0DE 3057

* remotes/cody/tags/block-pull-request:
  block/curl: fix minor memory leaks
  block/curl: check error return of curl_global_init()
  block/sheepdog: code beautification
  block/sheepdog: remove spurious NULL check
  blockjob: kick jobs on set-speed
  backup: use copy_bitmap in incremental backup
  backup: simplify non-dirty bits progress processing
  backup: init copy_bitmap from sync_bitmap for incremental
  backup: move from done_bitmap to copy_bitmap
  hbitmap: add next_zero function

Signed-off-by: Peter Maydell <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-19-1' into...
Peter Maydell [Tue, 19 Dec 2017 12:48:56 +0000 (12:48 +0000)]
Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-19-1' into staging

Merge tpm 2017/12/19 v1

# gpg: Signature made Tue 19 Dec 2017 11:51:13 GMT
# gpg:                using RSA key 0x75AD65802A0B4211
# gpg: Good signature from "Stefan Berger <[email protected]>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B818 B9CA DF90 89C2 D5CE  C66B 75AD 6580 2A0B 4211

* remotes/stefanberger/tags/pull-tpm-2017-12-19-1:
  tpm: move qdev_prop_tpm to hw/tpm/

Signed-off-by: Peter Maydell <[email protected]>
7 years agotpm: move qdev_prop_tpm to hw/tpm/
Cornelia Huck [Mon, 18 Dec 2017 18:36:31 +0000 (19:36 +0100)]
tpm: move qdev_prop_tpm to hw/tpm/

Building with --disable-tpm yields

../hw/core/qdev-properties-system.o: In function `set_tpm':
/home/cohuck/git/qemu/hw/core/qdev-properties-system.c:274: undefined reference to `qemu_find_tpm_be'
/home/cohuck/git/qemu/hw/core/qdev-properties-system.c:278: undefined reference to `tpm_backend_init'
../hw/core/qdev-properties-system.o: In function `release_tpm':
/home/cohuck/git/qemu/hw/core/qdev-properties-system.c:291: undefined reference to `tpm_backend_reset'

Move the implementation of DEFINE_PROP_TPMBE to hw/tpm/ so that it is
only built when tpm is actually configured, and build tpm_util in every
case.

Fixes: 493b78303532 ("qdev: add DEFINE_PROP_TPMBE")
Reported-by: Thomas Huth <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Signed-off-by: Stefan Berger <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging
Peter Maydell [Tue, 19 Dec 2017 00:15:44 +0000 (00:15 +0000)]
Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging

# gpg: Signature made Mon 18 Dec 2017 14:47:53 GMT
# gpg:                using RSA key 0x9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <[email protected]>"
# gpg:                 aka "Stefan Hajnoczi <[email protected]>"
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35  775A 9CA4 ABB3 81AB 73C8

* remotes/stefanha/tags/tracing-pull-request:
  gdbstub: add tracing
  trace: Try using tracefs first
  trace: Generalize searching for debugfs
  trace: Simplify find_debugfs()

Signed-off-by: Peter Maydell <[email protected]>
7 years agotarget/sh4: Convert to DisasContextBase
Richard Henderson [Thu, 7 Sep 2017 18:50:56 +0000 (11:50 -0700)]
target/sh4: Convert to DisasContextBase

Signed-off-by: Richard Henderson <[email protected]>
[aurel32: fix whitespace]
Message-Id: <20170907185057[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agotarget/sh4: Do not singlestep after exceptions
Richard Henderson [Thu, 7 Sep 2017 18:50:55 +0000 (11:50 -0700)]
target/sh4: Do not singlestep after exceptions

If we've already raised an exception (and set NORETURN),
do not emit unreachable code to raise a debug exception.
Note that gen_goto_tb takes single-stepping into account.

Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20170907185057[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agotarget/sh4: Convert to DisasJumpType
Richard Henderson [Thu, 7 Sep 2017 18:50:54 +0000 (11:50 -0700)]
target/sh4: Convert to DisasJumpType

Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20170907185057[email protected]>
[aurel32: fix whitespace]
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agotarget/sh4: Use cmpxchg for movco when parallel_cpus
Richard Henderson [Thu, 7 Sep 2017 18:50:53 +0000 (11:50 -0700)]
target/sh4: Use cmpxchg for movco when parallel_cpus

As for other targets, cmpxchg isn't quite right for ll/sc,
suffering from an ABA race, but is sufficient to implement
portable atomic operations.

Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <20170907185057[email protected]>
[aurel32: fix whitespace]
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agotarget/sh4: fix TCG leak during gusa sequence
Alex Bennée [Wed, 6 Dec 2017 09:30:50 +0000 (09:30 +0000)]
target/sh4: fix TCG leak during gusa sequence

This fixes bug #1735384 while running java under qemu-sh4. When debug
was enabled it showed a problem with TCG temps. Once fixed I was able
to run java -version normally.

Cc: [email protected]
Reported-by: John Paul Adrian Glaubitz <[email protected]>
Suggested-by: Richard Henderson <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <20171206093050[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Aurelien Jarno <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agotarget/sh4: add missing tcg_temp_free() in _decode_opc()
Philippe Mathieu-Daudé [Tue, 5 Dec 2017 17:00:13 +0000 (14:00 -0300)]
target/sh4: add missing tcg_temp_free() in _decode_opc()

missed in c55497ecb8c and 852d481faf7.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20171205170013[email protected]>
Reviewed-by: Aurelien Jarno <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
7 years agoblock/curl: fix minor memory leaks
Jeff Cody [Tue, 7 Nov 2017 22:27:23 +0000 (17:27 -0500)]
block/curl: fix minor memory leaks

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Richard W.M. Jones <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
7 years agoblock/curl: check error return of curl_global_init()
Jeff Cody [Tue, 7 Nov 2017 22:27:22 +0000 (17:27 -0500)]
block/curl: check error return of curl_global_init()

If curl_global_init() fails, per the documentation no other curl
functions may be called, so make sure to check the return value.

Also, some minor changes to the initialization latch variable 'inited':

- Make it static in the file, for clarity
- Change the name for clarity
- Make it a bool

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Richard W.M. Jones <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
7 years agoblock/sheepdog: code beautification
Jeff Cody [Tue, 7 Nov 2017 22:27:21 +0000 (17:27 -0500)]
block/sheepdog: code beautification

No functional changes, just whitespace manipulation.

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
7 years agoblock/sheepdog: remove spurious NULL check
Jeff Cody [Tue, 7 Nov 2017 22:27:20 +0000 (17:27 -0500)]
block/sheepdog: remove spurious NULL check

'tag' is already checked in the lines immediately preceding this check,
and set to non-NULL if NULL.  No need to check again, it hasn't changed.

Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
7 years agoblockjob: kick jobs on set-speed
John Snow [Wed, 13 Dec 2017 20:46:11 +0000 (15:46 -0500)]
blockjob: kick jobs on set-speed

If users set an unreasonably low speed (like one byte per second), the
calculated delay may exceed many hours. While we like to punish users
for asking for stupid things, we do also like to allow users to correct
their wicked ways.

When a user provides a new speed, kick the job to allow it to recalculate
its delay.

Signed-off-by: John Snow <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Message-id: 20171213204611[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agobackup: use copy_bitmap in incremental backup
Vladimir Sementsov-Ogievskiy [Thu, 12 Oct 2017 13:53:13 +0000 (16:53 +0300)]
backup: use copy_bitmap in incremental backup

We can use copy_bitmap instead of sync_bitmap. copy_bitmap is
initialized from sync_bitmap and it is more informative: we will not try
to process data, that is already in progress (by write notifier).

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Message-id: 20171012135313[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agobackup: simplify non-dirty bits progress processing
Vladimir Sementsov-Ogievskiy [Thu, 12 Oct 2017 13:53:12 +0000 (16:53 +0300)]
backup: simplify non-dirty bits progress processing

Set fake progress for non-dirty clusters in copy_bitmap initialization,
to. It simplifies code and allows further refactoring.

This patch changes user's view of backup progress, but formally it
doesn't changed: progress hops are just moved to the beginning.

Actually it's just a point of view: when do we actually skip clusters?
We can say in the very beginning, that we skip these clusters and do
not think about them later.

Of course, if go through disk sequentially, it's logical to say, that
we skip clusters between copied portions to the left and to the right
of them. But even now copying progress is not sequential because of
write notifiers. Future patches will introduce new backup architecture
which will do copying in several coroutines in parallel, so it will
make no sense to publish fake progress by parts in parallel with
other copying requests.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Message-id: 20171012135313[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agobackup: init copy_bitmap from sync_bitmap for incremental
Vladimir Sementsov-Ogievskiy [Thu, 12 Oct 2017 13:53:11 +0000 (16:53 +0300)]
backup: init copy_bitmap from sync_bitmap for incremental

We should not copy non-dirty clusters in write notifiers. So,
initialize copy_bitmap from sync_bitmap.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Message-id: 20171012135313[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agobackup: move from done_bitmap to copy_bitmap
Vladimir Sementsov-Ogievskiy [Thu, 12 Oct 2017 13:53:10 +0000 (16:53 +0300)]
backup: move from done_bitmap to copy_bitmap

Use HBitmap copy_bitmap instead of done_bitmap. This is needed to
improve incremental backup in following patches and to unify backup
loop for full/incremental modes in future patches.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Jeff Cody <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: John Snow <[email protected]>
Message-id: 20171012135313[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agohbitmap: add next_zero function
Vladimir Sementsov-Ogievskiy [Thu, 12 Oct 2017 13:53:09 +0000 (16:53 +0300)]
hbitmap: add next_zero function

The function searches for next zero bit.
Also add interface for BdrvDirtyBitmap and unit test.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Message-id: 20171012135313[email protected]
Signed-off-by: Jeff Cody <[email protected]>
7 years agogdbstub: add tracing
Doug Gale [Sun, 3 Dec 2017 01:30:37 +0000 (20:30 -0500)]
gdbstub: add tracing

Signed-off-by: Doug Gale <[email protected]>
Message-id: 20171203013037[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
7 years agotrace: Try using tracefs first
Namhyung Kim [Tue, 7 Nov 2017 15:31:36 +0000 (00:31 +0900)]
trace: Try using tracefs first

Recent Linux kernel provides separate tracefs which doesn't need to be
mounted on the debugfs.  Although most systems mount it at the
traditional place on the debugfs, it'd be safer to check tracefs first.

Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
7 years agotrace: Generalize searching for debugfs
Namhyung Kim [Tue, 7 Nov 2017 15:31:35 +0000 (00:31 +0900)]
trace: Generalize searching for debugfs

The find_debugfs() can be shared to find a different filesystem like
tracefs.  So make it more general and rename to find_mount().

Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
7 years agotrace: Simplify find_debugfs()
Namhyung Kim [Tue, 7 Nov 2017 15:31:34 +0000 (00:31 +0900)]
trace: Simplify find_debugfs()

The return vale of find_debugfs() is 1 if it could find a mount point of
debugfs.  It can be saved in the while loop instead of checking it again.

Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into staging
Peter Maydell [Mon, 18 Dec 2017 14:17:42 +0000 (14:17 +0000)]
Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into staging

trivial patches for 2017-12-18

# gpg: Signature made Mon 18 Dec 2017 14:08:51 GMT
# gpg:                using RSA key 0x701B4F6B1A693E59
# gpg: Good signature from "Michael Tokarev <[email protected]>"
# gpg:                 aka "Michael Tokarev <[email protected]>"
# gpg:                 aka "Michael Tokarev <[email protected]>"
# Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
#      Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931  4B22 701B 4F6B 1A69 3E59

* remotes/mjt/tags/trivial-patches-fetch: (60 commits)
  misc: drop old i386 dependency
  i386/pc: move vmmouse.c to hw/i386/
  i386/pc: move vmport.c to hw/i386/
  hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h"
  hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c
  hw/display/vga: extract public API from i386/pc to "hw/display/vga.h"
  hw/display/vga: "vga_int.h" requires "ui/console.h"
  hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h"
  hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc
  hw/acpi: ACPI_PM_* defines are not restricted to i386 arch
  hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init()
  hw/timer/i8254: rename pit_init() -> i8254_pit_init()
  hw/unicore32: restrict hw addr defines to source file
  hw/virtio-balloon: remove old i386 dependency
  hw/tpm: remove old i386 dependency
  hw/i2c: remove old i386 dependency
  hw/ipmi: remove old i386 dependency
  hw/ide: remove old i386 dependency
  misc: remove old i386 dependency
  amd_iommu: avoid needless includes in header file
  ...

Signed-off-by: Peter Maydell <[email protected]>
7 years agomisc: drop old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:26 +0000 (13:44 -0300)]
misc: drop old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoi386/pc: move vmmouse.c to hw/i386/
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:25 +0000 (13:44 -0300)]
i386/pc: move vmmouse.c to hw/i386/

It's a x86-only device, so it does not make sense to keep it
in the shared misc folder.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoi386/pc: move vmport.c to hw/i386/
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:24 +0000 (13:44 -0300)]
i386/pc: move vmport.c to hw/i386/

It's a x86-only device, so it does not make sense to keep it
in the shared misc folder.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h"
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:23 +0000 (13:44 -0300)]
hw/misc/pvpanic: extract public API from i386/pc to "hw/misc/pvpanic.h"

and remove the old i386/pc dependency.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:22 +0000 (13:44 -0300)]
hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c

- add "hw/net/ne2000-isa.h"
- remove the old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Acked-by: David Gibson <[email protected]> [PPC]
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/display/vga: extract public API from i386/pc to "hw/display/vga.h"
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:21 +0000 (13:44 -0300)]
hw/display/vga: extract public API from i386/pc to "hw/display/vga.h"

and remove the old i386/pc dependency.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/display/vga: "vga_int.h" requires "ui/console.h"
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:20 +0000 (13:44 -0300)]
hw/display/vga: "vga_int.h" requires "ui/console.h"

since The VGACommonState struct has a GraphicHwOps *hw_ops member,
then remove the now unnecessary includes.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h"
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:19 +0000 (13:44 -0300)]
hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h"

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:18 +0000 (13:44 -0300)]
hw/acpi/ich9: extract ACPI_PM_PROP_TCO_ENABLED from i386/pc

enable_tco is specific to i386/pc.

Suggested-by: Paolo Bonzini <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/acpi: ACPI_PM_* defines are not restricted to i386 arch
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:17 +0000 (13:44 -0300)]
hw/acpi: ACPI_PM_* defines are not restricted to i386 arch

this allows to remove the old i386/pc dependency on acpi/core.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init()
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:16 +0000 (13:44 -0300)]
hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init()

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Reviewed-by: David Gibson <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/timer/i8254: rename pit_init() -> i8254_pit_init()
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:15 +0000 (13:44 -0300)]
hw/timer/i8254: rename pit_init() -> i8254_pit_init()

and remove the old i386/pc dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/unicore32: restrict hw addr defines to source file
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:14 +0000 (13:44 -0300)]
hw/unicore32: restrict hw addr defines to source file

and drop unused #includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/virtio-balloon: remove old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:13 +0000 (13:44 -0300)]
hw/virtio-balloon: remove old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/tpm: remove old i386 dependency
Philippe Mathieu-Daudé [Mon, 18 Dec 2017 01:59:47 +0000 (22:59 -0300)]
hw/tpm: remove old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/i2c: remove old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:11 +0000 (13:44 -0300)]
hw/i2c: remove old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/ipmi: remove old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:10 +0000 (13:44 -0300)]
hw/ipmi: remove old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Corey Minyard <[email protected]>
Tested-by: Corey Minyard <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/ide: remove old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:09 +0000 (13:44 -0300)]
hw/ide: remove old i386 dependency

and remove a duplicated include

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Acked-by: John Snow <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agomisc: remove old i386 dependency
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:08 +0000 (13:44 -0300)]
misc: remove old i386 dependency

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Anthony PERARD <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoamd_iommu: avoid needless includes in header file
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:07 +0000 (13:44 -0300)]
amd_iommu: avoid needless includes in header file

instead move them to the source file

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/ssi/aspeed_smc: remove unused #include
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:06 +0000 (13:44 -0300)]
hw/ssi/aspeed_smc: remove unused #include

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/misc/pvpanic: remove unused #include
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:05 +0000 (13:44 -0300)]
hw/misc/pvpanic: remove unused #include

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/input/vmmouse: remove unused #include
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:04 +0000 (13:44 -0300)]
hw/input/vmmouse: remove unused #include

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agonuma: remove unused #include
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:03 +0000 (13:44 -0300)]
numa: remove unused #include

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agomisc: avoid "include/" in include path
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:02 +0000 (13:44 -0300)]
misc: avoid "include/" in include path

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agonios2: remove duplicated includes (in code commented out)
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:01 +0000 (13:44 -0300)]
nios2: remove duplicated includes (in code commented out)

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoi386/hax: remove duplicated include
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:44:00 +0000 (13:44 -0300)]
i386/hax: remove duplicated include

this file in include in "target/i386/hax-i386.h":

    #ifdef CONFIG_WIN32
    #include "target/i386/hax-windows.h"
    #endif

which guaranties that sysemu/os-win32.h is previously included (CONFIG_WIN32)

Suggested-by: Peter Maydell <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoi386/hax: remove duplicated includes
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:59 +0000 (13:43 -0300)]
i386/hax: remove duplicated includes

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoppc: remove duplicated includes
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:58 +0000 (13:43 -0300)]
ppc: remove duplicated includes

applied using ./scripts/clean-includes

not needed since 7ebaf795560

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Acked-by: David Gibson <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agomisc: remove duplicated includes
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:57 +0000 (13:43 -0300)]
misc: remove duplicated includes

exec: housekeeping (funny since 02d0e095031)

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Reviewed-by: Anthony PERARD <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agomisc: remove headers implicitly included
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:56 +0000 (13:43 -0300)]
misc: remove headers implicitly included

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Ben Warren <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoblock: remove "qemu/osdep.h" from header file
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:55 +0000 (13:43 -0300)]
block: remove "qemu/osdep.h" from header file

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw: remove "qemu/osdep.h" from header files
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:54 +0000 (13:43 -0300)]
hw: remove "qemu/osdep.h" from header files

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: Corey Minyard <[email protected]>
Tested-by: Corey Minyard <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw: use "qemu/osdep.h" as first #include in source files
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:53 +0000 (13:43 -0300)]
hw: use "qemu/osdep.h" as first #include in source files

applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Acked-by: David Gibson <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add missing entry for include/hw/net/
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:52 +0000 (13:43 -0300)]
MAINTAINERS: add missing entry for include/hw/net/

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add entries for timer/m48t59
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:51 +0000 (13:43 -0300)]
MAINTAINERS: add entries for timer/m48t59

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add an entry for input/pckbd.c
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:50 +0000 (13:43 -0300)]
MAINTAINERS: add an entry for input/pckbd.c

and fix a typo in the "PC Chipset" section

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add an entry for watchdog/wdt_ib700
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:49 +0000 (13:43 -0300)]
MAINTAINERS: add an entry for watchdog/wdt_ib700

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add an entry for the i82378 (superio)
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:48 +0000 (13:43 -0300)]
MAINTAINERS: add an entry for the i82378 (superio)

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add an entry for the i8257 (DMA controller)
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:47 +0000 (13:43 -0300)]
MAINTAINERS: add an entry for the i8257 (DMA controller)

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add an entry for the i82374 (southbridge)
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:46 +0000 (13:43 -0300)]
MAINTAINERS: add an entry for the i82374 (southbridge)

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Hervé Poussineau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add entries for i2c/ppc4xx
Philippe Mathieu-Daudé [Tue, 17 Oct 2017 16:43:45 +0000 (13:43 -0300)]
MAINTAINERS: add entries for i2c/ppc4xx

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: Corey Minyard <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/input/hid: Add support for several keys.
Tao Wu [Thu, 7 Dec 2017 06:56:39 +0000 (22:56 -0800)]
hw/input/hid: Add support for several keys.

Add support for these keys: audiomute volumedown volumeup power.
Tested with "sendkey" command in monitor and verify the behavior
in guest OS.

Signed-off-by: Tao Wu <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/registerfields: add missing include
Philippe Mathieu-Daudé [Wed, 13 Dec 2017 05:17:36 +0000 (02:17 -0300)]
hw/registerfields: add missing include

This allows to use this header in qtests.

This fixes:
    CC      tests/test.o
  include/hw/registerfields.h:32:41: error: implicit declaration of function ‘MAKE_64BIT_MASK’ [-Werror=implicit-function-declaration]
              MAKE_64BIT_MASK(shift, length)};
              ^
  include/hw/registerfields.h:39:5: error: implicit declaration of function ‘extract64’; [-Werror=implicit-function-declaration]
       extract64((storage), R_ ## reg ## _ ## field ## _SHIFT,
       ^

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/registerfields: add 64-bit extract/deposit macros
Philippe Mathieu-Daudé [Wed, 13 Dec 2017 05:17:35 +0000 (02:17 -0300)]
hw/registerfields: add 64-bit extract/deposit macros

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agohw/registerfields: fix a typo in the FIELD() documentation
Philippe Mathieu-Daudé [Wed, 13 Dec 2017 05:17:34 +0000 (02:17 -0300)]
hw/registerfields: fix a typo in the FIELD() documentation

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMAINTAINERS: add "hw/registerfields.h" in Register API entry
Philippe Mathieu-Daudé [Wed, 13 Dec 2017 05:17:33 +0000 (02:17 -0300)]
MAINTAINERS: add "hw/registerfields.h" in Register API entry

Orphan since afb3141c660

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Darren Kenny <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMakefile: add more targets to the UNCHECKED_GOALS rule
Philippe Mathieu-Daudé [Tue, 21 Nov 2017 03:22:47 +0000 (00:22 -0300)]
Makefile: add more targets to the UNCHECKED_GOALS rule

These targets don't need a full build of git submodules.
(See b8e535ae8af and eaa2ddbb767).

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoaccel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h
Peter Maydell [Tue, 21 Nov 2017 15:07:31 +0000 (15:07 +0000)]
accel/tcg/cpu-exec-common.c: Remove unnecessary include of memory-internal.h

The cpu-exec-common.c file includes memory-internal.h, but it doesn't
actually use anything from that header. Remove the unnecessary include.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agobuild: fix typo in error message
Mike Frysinger [Mon, 27 Nov 2017 17:49:44 +0000 (12:49 -0500)]
build: fix typo in error message

Signed-off-by: Mike Frysinger <[email protected]>
Reviewed-by: John Snow <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMakefile: use $(MAKE) variable
Philippe Mathieu-Daudé [Tue, 21 Nov 2017 09:55:10 +0000 (06:55 -0300)]
Makefile: use $(MAKE) variable

For some systems (i.e. FreeBSD) the default 'make' is not compatible with the
GNU extensions used by QEMU makefiles.

Calling the GNU make (gmake) works, however the help displayed refers to the
host 'make' and copy/paste leads to lot of unobvious errors:

  $ gmake check-help
  [...]
   make check                Run all tests

  $ make check
  make: "Makefile" line 28: Missing dependency operator
  make: "Makefile" line 37: Need an operator
  make: "Makefile" line 41: warning: duplicate script for target "git-submodule-update" ignored
  make: "rules.mak" line 70: warning: duplicate script for target "%.o" ignored
  make: Unknown modifier ' '
  make: Unclosed substitution for eval modules (= missing)
  make: "tests/Makefile.include" line 24: Variable/Value missing from "export"
  make: "tests/" line 1: warning: Zero byte read from file, skipping rest of line.
  make: "tests/" line 1: Need an operator
  make: "Makefile" line 660: warning: duplicate script for target "ifneq" ignored
  make: "Makefile" line 78: warning: using previous script for "ifneq" defined here
  make: Fatal errors encountered -- cannot continue

Using the $(MAKE) variable, the help displayed is consistent with the 'make'
program used.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoDocument pretty parameter for mon option
Vicente Jimenez Aguilar [Tue, 14 Nov 2017 08:11:27 +0000 (09:11 +0100)]
Document pretty parameter for mon option

Documentation: document pretty parameter for mon option
that turns on JSON pretty printing

Signed-off-by: Vicente Jimenez Aguilar <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agomemory: remove unused memory_region_set_global_locking()
Marc-André Lureau [Mon, 6 Nov 2017 18:55:06 +0000 (19:55 +0100)]
memory: remove unused memory_region_set_global_locking()

This was never used since its introduction in commit
196ea13104f8 ("memory: Add global-locking property to memory
regions").

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years ago.gitignore: remove vscclient
Marc-André Lureau [Mon, 6 Nov 2017 18:54:10 +0000 (19:54 +0100)]
.gitignore: remove vscclient

It was removed with libcacard, since:

commit 7b02f5447c64d1854468f758398c9f6fe9e5721f
Author: Marc-André Lureau <[email protected]>
Date:   Sun Aug 30 11:48:40 2015 +0200

    libcacard: use the standalone project

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agommap(2) returns MAP_FAILED, not NULL, on failure
Michael McConville [Fri, 1 Dec 2017 18:31:57 +0000 (11:31 -0700)]
mmap(2) returns MAP_FAILED, not NULL, on failure

Signed-off-by: Michael McConville <[email protected]>
Reviewed-by: John Snow <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoconfigure: check $CC available before verifying host CPU
Daniel Henrique Barboza [Thu, 2 Nov 2017 09:09:06 +0000 (07:09 -0200)]
configure: check $CC available before verifying host CPU

When executing 'configure' in a fresh QEMU clone, in a fresh
OS install running in a ppc64le host, this is the error
shown:

-----

../configure --enable-trace-backend=simple --enable-debug
    --target-list=ppc64-softmmu

ERROR: Unsupported CPU = ppc64le, try --enable-tcg-interpreter

-----

This isn't true, ppc64le host CPU is supported. This happens because,
in a fresh install, we don't have a C compiler to autodetect
the $cpu variable to "ppc64".

This patch moves the CC available check up a bit, just before verifying
the host CPU. This ensures that we bail out with a $CC not available
error instead of unsupported CPU (the host CPU detection without
the compiler wouldn't work properly anyway). It also allows --help to
keep working without a C compiler. With this patch, in the same ppc64le
host without gcc:

$ ../configure --enable-trace-backend=simple --enable-debug
    --target-list=ppc64-softmmu

ERROR: "cc" either does not exist or does not work

$ ../configure --help

Usage: configure [options]
Options: [defaults in brackets after descriptions]

Standard options:
  --help                   print this message
  --prefix=PREFIX          install in PREFIX [/usr/local]
  --interp-prefix=PREFIX   where to find shared libraries, etc.
(...)

Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoqht: fix kernel-doc markup in qht.h
Emilio G. Cota [Wed, 18 Oct 2017 22:01:43 +0000 (18:01 -0400)]
qht: fix kernel-doc markup in qht.h

While at it, s/stuct/struct/.

Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agotranslate-all: fix 'consisits' typo in comment
Emilio G. Cota [Wed, 18 Oct 2017 22:01:42 +0000 (18:01 -0400)]
translate-all: fix 'consisits' typo in comment

Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agodisas/arm: fix 'instuction' typo in comment
Emilio G. Cota [Wed, 18 Oct 2017 22:01:40 +0000 (18:01 -0400)]
disas/arm: fix 'instuction' typo in comment

Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoRemove empty statements
Ladi Prosek [Tue, 17 Oct 2017 14:40:51 +0000 (16:40 +0200)]
Remove empty statements

Thanks to Laszlo Ersek for spotting the double semicolon in target/i386/kvm.c

I have trivially grepped the tree for ';;' in C files.

Suggested-by: Laszlo Ersek <[email protected]>
Signed-off-by: Ladi Prosek <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into...
Peter Maydell [Sun, 17 Dec 2017 15:27:41 +0000 (15:27 +0000)]
Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into staging

Merge tpm 2017/12/15 v1

# gpg: Signature made Fri 15 Dec 2017 04:44:15 GMT
# gpg:                using RSA key 0x75AD65802A0B4211
# gpg: Good signature from "Stefan Berger <[email protected]>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B818 B9CA DF90 89C2 D5CE  C66B 75AD 6580 2A0B 4211

* remotes/stefanberger/tags/pull-tpm-2017-12-15-1: (32 commits)
  tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size
  tpm: tpm_emulator: get and set buffer size of device
  tpm: tpm_passthrough: Read the buffer size from the host device
  tpm: pull tpm_util_request() out of tpm_util_test()
  tpm: Move getting TPM buffer size to backends
  tpm: remove tpm_register_model()
  tpm-tis: use DEFINE_PROP_TPMBE
  qdev: add DEFINE_PROP_TPMBE
  tpm-tis: check that at most one TPM device exists
  tpm-tis: remove redundant 'tpm_tis:' in error messages
  tpm-emulator: add a FIXME comment about blocking cancel
  acpi: change TPM TIS data conditions
  tpm: add tpm_cmd_get_size() to tpm_util
  tpm: add TPM interface to lookup TPM version
  tpm: lookup the the TPM interface instead of TIS device
  tpm: rename qemu_find_tpm() -> qemu_find_tpm_be()
  tpm-tis: simplify header inclusion
  tpm-passthrough: workaround a possible race
  tpm-passthrough: simplify create()
  tpm-passthrough: make it safer to destroy after creation
  ...

Signed-off-by: Peter Maydell <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/berrange/tags/pull-qio-201712151' into staging
Peter Maydell [Fri, 15 Dec 2017 17:05:26 +0000 (17:05 +0000)]
Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-201712151' into staging

Merge qio 2017/12/15 v1

# gpg: Signature made Fri 15 Dec 2017 15:07:34 GMT
# gpg:                using RSA key 0xBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <[email protected]>"
# gpg:                 aka "Daniel P. Berrange <[email protected]>"
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF

* remotes/berrange/tags/pull-qio-201712151:
  io: introduce a network socket listener API

Signed-off-by: Peter Maydell <[email protected]>
7 years agosparc: Make sure we mmap at SHMLBA alignment
Peter Maydell [Fri, 8 Dec 2017 16:57:28 +0000 (16:57 +0000)]
sparc: Make sure we mmap at SHMLBA alignment

SPARC Linux has an oddity that it insists that mmap()
of MAP_FIXED memory must be at an alignment defined by
SHMLBA, which is more aligned than the page size
(typically, SHMLBA alignment is to 16K, and pages are 8K).
This is a relic of ancient hardware that had cache
aliasing constraints, but even on modern hardware the
kernel still insists on the alignment.

To ensure that we get mmap() alignment sufficient to
make the kernel happy, change QEMU_VMALLOC_ALIGN,
qemu_fd_getpagesize() and qemu_mempath_getpagesize()
to use the maximum of getpagesize() and SHMLBA.

In particular, this allows 'make check' to pass on Sparc:
we were previously failing the ivshmem tests.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 1512752248[email protected]

7 years agoio: introduce a network socket listener API
Daniel P. Berrange [Tue, 19 Jul 2016 12:37:51 +0000 (13:37 +0100)]
io: introduce a network socket listener API

The existing QIOChannelSocket class provides the ability to
listen on a single socket at a time. This patch introduces
a QIONetListener class that provides a higher level API
concept around listening for network services, allowing
for listening on multiple sockets.

Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Daniel P. Berrange <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/cohuck/tags/s390x-20171215-v2' into staging
Peter Maydell [Fri, 15 Dec 2017 12:58:17 +0000 (12:58 +0000)]
Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20171215-v2' into staging

s390x changes for 2.12:
- Lots of tcg improvements: ccw hotplug is now working and we can run
  a Linux kernel built for z12 under tcg
- zPCI improvements to get virtio-pci working
- get rid of the cssid restrictions for virtual and non-virtual channel
  devices
- we now support 8TB+ systems
- 2.12 compat machine
- fixes and cleanups

# gpg: Signature made Fri 15 Dec 2017 10:57:01 GMT
# gpg:                using RSA key 0xDECF6B93C6F02FAF
# gpg: Good signature from "Cornelia Huck <[email protected]>"
# gpg:                 aka "Cornelia Huck <[email protected]>"
# gpg:                 aka "Cornelia Huck <[email protected]>"
# gpg:                 aka "Cornelia Huck <[email protected]>"
# gpg:                 aka "Cornelia Huck <[email protected]>"
# Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF

* remotes/cohuck/tags/s390x-20171215-v2: (46 commits)
  s390-ccw-virtio: allow for systems larger that 7.999TB
  s390x: change the QEMU cpu model to a stripped down z12
  s390x/tcg: we already implement the Set-Program-Parameter facility
  s390x/tcg: implement extract-CPU-time facility
  s390x/tcg: Implement SIGNAL ADAPTER instruction
  s390x/tcg: Implement STORE CHANNEL PATH STATUS
  s390x/tcg: wire up SET CHANNEL MONITOR
  s390x/tcg: wire up SET ADDRESS LIMIT
  s390x/tcg: implement Interlocked-Access Facility 2
  s390x/tcg: ASI/ASGI/ALSI/ALSGI are atomic with Interlocked-acccess facility 1
  s390x/tcg: wire up STORE CHANNEL REPORT WORD
  s390x/tcg: indicate value of TODPR in STCKE
  s390x/tcg: implement SET CLOCK PROGRAMMABLE FIELD
  s390x/tcg: fix and cleanup mcck injection
  s390x/kvm: factor out build_channel_report_mcic() into cpu.h
  s390x/css: attach css bridge
  s390x: deprecate s390-squash-mcss machine prop
  s390x/css: unrestrict cssids
  s390x/pci: search for subregion inside the BARs
  s390x/pci: move the memory region write from pcistg
  ...

# Conflicts:
# include/hw/compat.h

Signed-off-by: Peter Maydell <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20171215' into staging
Peter Maydell [Fri, 15 Dec 2017 11:13:43 +0000 (11:13 +0000)]
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.12-20171215' into staging

ppc patch queue 2017-12-15

First pull request for qemu-2.12.  This has quite a bit of stuff
accumulated while 2.11 was finalizing.  Highlights are:

  * Some preliminary work towards implementing the "XIVE" POWER9
    interrupt controller
  * Some fixes for problems during reboot with MTTCG
  * A substantial TCG performance improvement via
    tcg_get_lookup_and_goto_ptr
  * Numerous assorted cleanups and bugfixes that weren't urgent enough
    for 2.11

# gpg: Signature made Fri 15 Dec 2017 03:14:12 GMT
# gpg:                using RSA key 0x6C38CACA20D9B392
# gpg: Good signature from "David Gibson <[email protected]>"
# gpg:                 aka "David Gibson (Red Hat) <[email protected]>"
# gpg:                 aka "David Gibson (ozlabs.org) <[email protected]>"
# gpg:                 aka "David Gibson (kernel.org) <[email protected]>"
# Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392

* remotes/dgibson/tags/ppc-for-2.12-20171215: (24 commits)
  spapr: don't initialize PATB entry if max-cpu-compat < power9
  spapr: Assume msi_nonbroken
  spapr: Rename machine init functions for clarity
  target/ppc: introduce the PPC_BIT() macro
  spapr_events: drop bogus cell from "interrupt-ranges" property
  spapr: fix LSI interrupt specifiers in the device tree
  spapr: replace numa_get_node() with lookup in pc-dimm list
  spapr: introduce a spapr_qirq() helper
  spapr: introduce a spapr_irq_set_lsi() helper
  spapr: move the IRQ allocation routines under the machine
  ppc/xics: assign of the CPU 'intc' pointer under the core
  ppc/xics: introduce an icp_create() helper
  spapr/rtas: do not reset the MSR in stop-self command
  spapr/rtas: fix reboot of a a SMP TCG guest
  spapr/rtas: disable the decrementer interrupt when a CPU is unplugged
  e500: fix pci host bridge class/type
  openpic: debug w/ info_report()
  pcc: define the Power-saving mode Exit Cause Enable bits in PowerPCCPUClass
  nvram: add AT24Cx i2c eeprom
  e500: name openpic and pci host bridge
  ...

Signed-off-by: Peter Maydell <[email protected]>
7 years agos390-ccw-virtio: allow for systems larger that 7.999TB
Christian Borntraeger [Mon, 11 Dec 2017 12:21:46 +0000 (13:21 +0100)]
s390-ccw-virtio: allow for systems larger that 7.999TB

KVM does not allow memory regions > KVM_MEM_MAX_NR_PAGES, basically
limiting the memory per slot to 8TB-4k. As memory slots on s390/kvm must
be a multiple of 1MB we need start a new memory region if we cross
8TB-1M.

With that (and optimistic overcommitment in the kernel) I was able to
start a 24TB guest on a 1TB system.

Signed-off-by: Christian Borntraeger <[email protected]>
Message-Id: <20171211122146[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
[CH: 1UL -> 1ULL in KVM_MEM_MAX_NR_PAGES; build fix on 32 bit hosts]
Signed-off-by: Cornelia Huck <[email protected]>
7 years agoMerge remote-tracking branch 'remotes/sstabellini/tags/xen-20171214-tag' into staging
Peter Maydell [Fri, 15 Dec 2017 09:52:07 +0000 (09:52 +0000)]
Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20171214-tag' into staging

Xen 2017/12/14

# gpg: Signature made Fri 15 Dec 2017 00:26:26 GMT
# gpg:                using RSA key 0x894F8F4870E1AE90
# gpg: Good signature from "Stefano Stabellini <[email protected]>"
# gpg:                 aka "Stefano Stabellini <[email protected]>"
# Primary key fingerprint: D04E 33AB A51F 67BA 07D3  0AEA 894F 8F48 70E1 AE90

* remotes/sstabellini/tags/xen-20171214-tag:
  xen/pt: Set is_express to avoid out-of-bounds write
  xenfb: activate input handlers for raw pointer devices
  xenfb: Add [feature|request]-raw-pointer
  xenfb: Use Input Handlers directly
  ui: generate qcode to linux mappings
  xen-disk: use an IOThread per instance

Signed-off-by: Peter Maydell <[email protected]>
7 years agotpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size
Stefan Berger [Mon, 6 Nov 2017 00:31:43 +0000 (19:31 -0500)]
tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size

If the requested buffer size of the frontend is smaller than the fixed
buffer size of the host's TPM, fail the startup_tpm() interface function,
which will make the device unusable. We fail it because the backend TPM
could produce larger packets than what the frontend could pass to the OS.

The current combination of TIS frontend and either passthrough or emulator
backend will not lead to this case since the TIS can support any size of
buffer.

Signed-off-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
7 years agotpm: tpm_emulator: get and set buffer size of device
Stefan Berger [Sat, 4 Nov 2017 23:57:15 +0000 (19:57 -0400)]
tpm: tpm_emulator: get and set buffer size of device

Convert the tpm_emulator backend to get the current buffer size
of the external device and set it to the buffer size that the
frontend (TIS) requests.

Signed-off-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
7 years agotpm: tpm_passthrough: Read the buffer size from the host device
Stefan Berger [Sat, 4 Nov 2017 02:49:23 +0000 (22:49 -0400)]
tpm: tpm_passthrough: Read the buffer size from the host device

Rather than hard coding the buffer size in the tpm_passthrough
backend read the TPM I/O buffer size from the host device.

Signed-off-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
7 years agotpm: pull tpm_util_request() out of tpm_util_test()
Stefan Berger [Sat, 4 Nov 2017 03:00:36 +0000 (23:00 -0400)]
tpm: pull tpm_util_request() out of tpm_util_test()

Signed-off-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
7 years agotpm: Move getting TPM buffer size to backends
Stefan Berger [Fri, 3 Nov 2017 22:10:01 +0000 (18:10 -0400)]
tpm: Move getting TPM buffer size to backends

Rather than setting the size of the TPM buffer in the front-end,
query the backend for the size of the buffer. In this patch we
just move the hard-coded buffer size of 4096 to the backends.

Signed-off-by: Stefan Berger <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
This page took 0.084237 seconds and 4 git commands to generate.