Commit Graph

1604 Commits

Author SHA1 Message Date
Matt Borgerson 4b6ee2c923 ui: Render video frame stats 2021-02-11 13:50:18 -07:00
Matt Borgerson 1cfb0e3922 ui: Add implot submodule 2021-02-11 13:50:18 -07:00
Matt Borgerson 26f4e6fc8f ui: Update to new imgui paths/rounding 2021-02-11 13:50:18 -07:00
Matt Borgerson 0c1ad27d8c ui: Add imgui submodule 2021-02-11 13:50:18 -07:00
Matt Borgerson 1fa9334dcb ui: Remove imgui sources 2021-02-11 13:50:18 -07:00
Matt Borgerson 64141f90e1 input: Use QTAILQ for available controllers list 2021-02-10 23:58:59 -07:00
Matt Borgerson 5233f777cf ui: Cleanup whitespace in xemu-custom-widgets.c 2021-02-10 23:58:59 -07:00
Matt Borgerson 7d2577e161 input: Factor out unused num_available_controllers 2021-02-10 23:58:59 -07:00
Matt Borgerson 885039f7f2 input: Use uint16_t for button state 2021-02-10 23:58:59 -07:00
Matt Borgerson d3a669faed input: Fixup includes and DPRINTF 2021-02-10 23:58:59 -07:00
Matt Borgerson e67c54c9bf input: Trim whitespace 2021-02-10 23:58:59 -07:00
Matt Borgerson aab63105fc ui: Move fullscreen trigger to main thread 2021-01-06 17:59:29 -07:00
Matt Borgerson bccfb6cd98 ui: Fix fullscreen launch 2021-01-06 15:48:46 -07:00
Matt Borgerson 416e12c3b3 mcpx: Enable APU pipeline 2021-01-03 16:14:47 -07:00
Matt Borgerson a72cc138f4 ui: Request high-performance graphics on Windows platform 2020-12-31 15:30:29 -07:00
Matt Borgerson 263870a7c3 ui: Add build version and debug indicator to window title bar 2020-12-24 17:45:45 -07:00
Jason e063fc37e7
input: Set SDL ALLOW_BACKGROUND_EVENTS hint 2020-11-23 20:45:17 -07:00
Matt Borgerson 2702f45cc3 input: Close gamecontroller handles on disconnect 2020-11-20 14:16:26 -07:00
haxar 02157b0958 ui: Set swap interval after creating GL context 2020-11-20 03:15:19 -07:00
Matt Borgerson 30ed4f5a56 ui: Move non-event handlers out of SDL event loop 2020-11-20 01:18:59 -07:00
Jason 8877c4ba98
input: Fix SDL haptic effect length and magnitude 2020-11-17 22:07:24 -07:00
Matt Borgerson 8d2ebd6cd8 ui: Disable UI thread RCU registration
This needs more investigation, as it can cause deadlock. Leave code
commented-out for now as a reminder to look into it.
2020-11-16 21:01:04 -07:00
Matt Borgerson 71ee1ca831 ui: Mimic QEMU thread and set thread-local tcg_ctx to tcg_init_ctx
Necessary to handle callbacks (e.g. rom_reset) from UI thread which will
flush TBs and reference thread-local TCG context, which is initialized
for main QEMU thread early on as tcg_init_ctx.
2020-11-16 18:51:37 -07:00
Blackbird88 2955b842f2 ui: Fix typo in About dialog 2020-11-09 16:04:11 -07:00
Matt Borgerson 119bfda6b6 ui: Retain default EEPROM path after generation 2020-11-07 15:11:32 -07:00
Mike e0841b9dd4 vl: Generate factory Xbox EEPROM if not provided 2020-11-06 14:54:53 -07:00
Matt Borgerson 0d6a871f87 ui: Remove 'X' button as menu button 2020-10-25 03:22:23 -07:00
Alexandre Bouvier 9bb7ce0047 ui: Add main category in desktop entry 2020-10-25 02:53:09 -07:00
Matt Borgerson d6e52a02c4 nv2a: Lazily synchronize surface data to/from RAM 2020-10-22 21:29:53 -07:00
Lucas Eriksson a957b9cf23 ui: Add 'MCPX' to BootROM field name in Settings 2020-09-28 03:14:16 -07:00
Matt Borgerson ed6d5e3e6d v5.1.0 release
-----BEGIN PGP SIGNATURE-----
 
 iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAl8ywicZHHBldGVyLm1h
 eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3s51D/sHWQ1lB6Gvqy0yTlmF8N6f
 PtdWBIO/4/X7ciNzszPiGQrfS3w/yDw4MPDm1Z9bVDqZnjdlXjr+AS7iEZ1pR6OP
 PYXha5f08nhMka+W+HLRSeVqcKLO2+CjUXz14Er4EJKnZ2sXk8dNfbU+ACG/lkKQ
 3fG6B6hVvElPyjeGLC08tarcmPZl4KPKOueQrZHahTJ77R+zNNfejK5qWCxGTTWg
 vDkWtzgGdAJOwOcBblwM7ZqGEZz0kIiCiwCzVNxidDjFKtUTzBamZ33ZDjEG7LJp
 TmxWHbtXOUGofL3ikvzJ335H2sOdePv+cubV8zgSYV0Anudm0KpHJnAofefpdw85
 CsucebO+PVqysNKLg5uXWUGfxRkwcT0f//ILFR0J9H9Ng6Oh4Pzqn8IhLKIUkFF6
 Id015V4fScNaZqhrNZBosL48zGbngpaiMw7tqsRa26SPwqnzXVLXureaMPEeaPoR
 X4eang2lDwKd7RslgigPWxzOST9abej/33moCgwLPT/Ivc8stNL94bVVrNJiglvM
 zOep6BIjaLgblHjMhDOuY+zx5n95CkBdSYynIy3IwWiuvh+abZVurjHR6YRu4Z8C
 7yRfnJKev/1rWO0DoXcXumgC4CFFQXBuI/ABm8LLpdcoJUYs+fF4pwZyUq8mb9LF
 RPoM6TLkV3HN4mityFZpEQ==
 =dBGu
 -----END PGP SIGNATURE-----

Merge tag 'v5.1.0' into merge-qemu-v5.1.0

v5.1.0 release
2020-08-25 12:11:26 -07:00
Peter Maydell 20c1df5476 bugfixes for audio, usb, ui and docs.
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.22 (GNU/Linux)
 
 iQIcBAABCgAGBQJfDGtbAAoJEEy22O7T6HE4vYkP/2o2Z9sQItLm/3Swo4PyiRYq
 +KHaVNkH03TKyUR2yavfDRx6iM/qHfxdEwsis4vuAksAob5YnqMdxldIbhrlJ5om
 oPQJPN5bvLMotZTBYWPJQ4frhis3oyRwSMBNTVG7qGx0ywpuS7c3RvMOqvriDJ6V
 rWdcL0PNYkzqRg210YwxW/epaEblrhx+aBoJCdCSJBzNn4mnX1AP8TFqX3DGh7/5
 McdGl8VWAcgz5hoKGnwbLBTYrKYN0kptpW/lNndXA7AnS1oSHsw+u/cSIdYAHSYy
 81SGv7h1rkq8Wg5jFSaFeTBAddSFDSEVHbKHE3xzdfVF/ej5xB5QzIeRGn+QznrF
 2RWwhM04bFK2q6Y1EGyR7wv51kVPQ4UU6irQL8vJnIQ9FXerhMTOvNG7Pj62fIyJ
 EmkBUb6ko9AqIKsmZk1z6L4aNaxgXSv7VGCwXboEhSCXCpwpydi0FdFsKpYAg9al
 qsUuizM8thL0anLyZH9i/8AFrTVfCLXPfZfpDzCuXVsIUnkTEYaYoD1fadh1oowE
 H8/Tol9eVSTd/knzus7tCYFg9OQOu/Dcz4OpORLb0Fb/ZBsgvhY16TgAIS2wNT2c
 8Zi4td2BSlDtxDnpQAZGz90HlgdCIAEz9Cpcmmhfgei0r7XiVrAJ2F2YJZTbWd0T
 WDfMHj4SyfgB+Ij/Xqwa
 =iikZ
 -----END PGP SIGNATURE-----

Merge remote-tracking branch 'remotes/kraxel/tags/fixes-20200713-pull-request' into staging

bugfixes for audio, usb, ui and docs.

# gpg: Signature made Mon 13 Jul 2020 15:10:35 BST
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full]
# gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>" [full]
# gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full]
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/fixes-20200713-pull-request:
  usb: fix usb-host build on windows.
  ui: fix vc_chr_write call in text_console_do_init
  docs/qdev-device-use: Clean up the sentences related to -usbdevice
  ossaudio: fix out of bounds write

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-07-13 16:58:44 +01:00
Gerd Hoffmann 185951817d ui: fix vc_chr_write call in text_console_do_init
In case the string doesn't fit into the buffer snprintf returns the size
it would need, so len can be larger than the buffer.  Fix this by simply
using g_strdup_printf() instead of a static buffer.

Reported-by: Wenxiang Qian <leonwxqian@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200701181801.27935-1-kraxel@redhat.com
2020-07-13 11:46:35 +02:00
Thomas Huth 7aa12aa215 Remove the CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE switch
GCC supports "#pragma GCC diagnostic" since version 4.6, and
Clang seems to support it, too, since its early versions 3.x.
That means that our minimum required compiler versions all support
this pragma already and we can remove the test from configure and
all the related #ifdefs in the code.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200710045515.25986-1-thuth@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2020-07-13 11:40:52 +02:00
Claudio Fontana b0c3cf9407 cpu-throttle: new module, extracted from cpus.c
move the vcpu throttling functionality into its own module.

This functionality is not specific to any accelerator,
and it is used currently by migration to slow down guests to try to
have migrations converge, and by the cocoa MacOS UI to throttle speed.

cpu-throttle contains the controls to adjust and inspect throttle
settings, start (set) and stop vcpu throttling, and the throttling
function itself that is run periodically on vcpus to make them take a nap.

Execution of the throttling function on all vcpus is triggered by a timer,
registered at module initialization.

No functionality change.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20200629093504.3228-3-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-10 18:04:49 -04:00
Markus Armbruster 5325cc34a2 qom: Put name parameter before value / visitor parameter
The object_property_set_FOO() setters take property name and value in
an unusual order:

    void object_property_set_FOO(Object *obj, FOO_TYPE value,
                                 const char *name, Error **errp)

Having to pass value before name feels grating.  Swap them.

Same for object_property_set(), object_property_get(), and
object_property_parse().

Convert callers with this Coccinelle script:

    @@
    identifier fun = {
        object_property_get, object_property_parse, object_property_set_str,
        object_property_set_link, object_property_set_bool,
        object_property_set_int, object_property_set_uint, object_property_set,
        object_property_set_qobject
    };
    expression obj, v, name, errp;
    @@
    -    fun(obj, v, name, errp)
    +    fun(obj, name, v, errp)

Chokes on hw/arm/musicpal.c's lcd_refresh() with the unhelpful error
message "no position information".  Convert that one manually.

Fails to convert hw/arm/armsse.c, because Coccinelle gets confused by
ARMSSE being used both as typedef and function-like macro there.
Convert manually.

Fails to convert hw/rx/rx-gdbsim.c, because Coccinelle gets confused
by RXCPU being used both as typedef and function-like macro there.
Convert manually.  The other files using RXCPU that way don't need
conversion.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-27-armbru@redhat.com>
[Straightforwad conflict with commit 2336172d9b "audio: set default
value for pcspk.iobase property" resolved]
2020-07-10 15:18:08 +02:00
Markus Armbruster 552d7f49ee qom: Crash more nicely on object_property_get_link() failure
Pass &error_abort instead of NULL where the returned value is
dereferenced or asserted to be non-null.  Drop a now redundant
assertion.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-24-armbru@redhat.com>
2020-07-10 15:18:08 +02:00
Markus Armbruster b94b3c02df vnc: Plug minor memory leak in vnc_display_open()
vnc_display_print_local_addr() leaks the Error object when
qio_channel_socket_get_local_address() fails.  Seems unlikely.  Called
when we create a VNC display with vnc_display_open().  Plug the leak
by passing NULL to ignore the error.

Cc: Daniel P. Berrange <berrange@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200630090351.1247703-12-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-02 06:25:29 +02:00
Markus Armbruster 9261ef5e32 Clean up some calls to ignore Error objects the right way
Receiving the error in a local variable only to free it is less clear
(and also less efficient) than passing NULL.  Clean up.

Cc: Daniel P. Berrange <berrange@redhat.com>
Cc: Jerome Forissier <jerome@forissier.org>
CC: Greg Kurz <groug@kaod.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20200630090351.1247703-4-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-02 06:25:28 +02:00
Matt Borgerson e8386e4e4c vl: Call xemu_input_init before vmload 2020-06-19 05:43:14 -07:00
Matt Borgerson 7d2b038ef6 main-loop: Add an outer lock on QEMU main loop
Ensures monitor commands run from the UI thread are synchronous and not
interfered with by things running on the QEMU main loop. e.g. savevm
which gives up the iothread lock. There's likely a nicer way to do this,
but for now this will do.
2020-06-19 05:43:14 -07:00
Matt Borgerson 7622b3f44e ui: Add error message for outdated xemu report submission 2020-06-10 16:59:56 -07:00
Matt Borgerson 98719d57f5 ui: Enable main URL for compatibility reporting 2020-06-07 22:08:15 -07:00
Matt Borgerson 7d244ae9d0 ui: Load token from settings, fix URL, other fixes 2020-06-07 22:08:15 -07:00
Matt Borgerson 5a16f23a14 ui: Add new settings option for token storage 2020-06-07 22:08:15 -07:00
Matt Borgerson 89734ca828 ui: Add runtime disc eject & load actions 2020-06-03 04:51:09 -07:00
Matt Borgerson f896ebc1e2 ui: Add system reset and keyboard shortcuts 2020-05-31 15:17:34 -07:00
Matt Borgerson ca4d03cf89 ui: Add ability to enable user (NAT) network backend 2020-05-30 18:52:47 -07:00
Matt Borgerson c71cef3a54 ui: Fix hmp monitor init: do not use readline 2020-05-29 01:48:34 -07:00
Philippe Mathieu-Daudé 57a878ed4f audio: Let capture_callback handler use const buffer argument
The buffer is the captured input to pass to backends.
As we should not modify it, mark the argument const.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200505132603.8575-3-f4bug@amsat.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-05-26 08:29:39 +02:00