qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/4] Trivial patches patches
@ 2018-12-18 14:28 Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 1/4] docs/devel/build-system: fix 'softmu' typo Laurent Vivier
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Laurent Vivier @ 2018-12-18 14:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Halil Pasic, Laurent Vivier, qemu-block, Cornelia Huck,
	Christian Borntraeger, Michael Tokarev, Richard Henderson,
	Paolo Bonzini, Michael Roth, Eduardo Habkost, qemu-s390x,
	Collin Walling, Markus Armbruster, Daniel P. Berrangé,
	David Hildenbrand, Kevin Wolf, Max Reitz, qemu-trivial

The following changes since commit f163448536e5f7ae8905b14547eab37a41a75f6c:

  Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20181216' into staging (2018-12-17 13:04:25 +0000)

are available in the Git repository at:

  git://github.com/vivier/qemu.git tags/trivial-patches-pull-request

for you to fetch changes up to b2322003b6389c7c98104c8626ffa342928ba83c:

  error: Remove NULL checks on error_propagate() calls (2018-12-18 14:57:48 +0100)

----------------------------------------------------------------
Trivial patches (2018-12-18)

----------------------------------------------------------------

Emilio G. Cota (1):
  docs/devel/build-system: fix 'softmu' typo

Markus Armbruster (2):
  vl: Use error_fatal to simplify obvious fatal errors (again)
  error: Remove NULL checks on error_propagate() calls

Roman Bolshakov (1):
  i386: hvf: drop debug printf in decode_sldtgroup

 blockdev.c                   | 4 +---
 docs/devel/build-system.txt  | 2 +-
 hw/s390x/s390-pci-bus.c      | 4 +---
 qga/commands-posix.c         | 7 ++-----
 target/i386/hvf/x86_decode.c | 2 --
 vl.c                         | 7 ++-----
 6 files changed, 7 insertions(+), 19 deletions(-)

-- 
2.19.2

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PULL 1/4] docs/devel/build-system: fix 'softmu' typo
  2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
@ 2018-12-18 14:28 ` Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 2/4] i386: hvf: drop debug printf in decode_sldtgroup Laurent Vivier
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2018-12-18 14:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Halil Pasic, Laurent Vivier, qemu-block, Cornelia Huck,
	Christian Borntraeger, Michael Tokarev, Richard Henderson,
	Paolo Bonzini, Michael Roth, Eduardo Habkost, qemu-s390x,
	Collin Walling, Markus Armbruster, Daniel P. Berrangé,
	David Hildenbrand, Kevin Wolf, Max Reitz, qemu-trivial,
	Emilio G. Cota

From: "Emilio G. Cota" <cota@braap.org>

Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181128153423.11916-1-cota@braap.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 docs/devel/build-system.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/devel/build-system.txt b/docs/devel/build-system.txt
index 52501f2ad9..f9fd27fab0 100644
--- a/docs/devel/build-system.txt
+++ b/docs/devel/build-system.txt
@@ -393,7 +393,7 @@ all use $(obj) as a prefix to the target, e.g.
 This file provides the entry point used to build each individual system
 or userspace emulator target. Each enabled target has its own
 subdirectory. For example if configure is run with the argument
-'--target-list=x86_64-softmmu', then a sub-directory 'x86_64-softmu'
+'--target-list=x86_64-softmmu', then a sub-directory 'x86_64-softmmu'
 will be created, containing a 'Makefile' which symlinks back to
 Makefile.target
 
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PULL 2/4] i386: hvf: drop debug printf in decode_sldtgroup
  2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 1/4] docs/devel/build-system: fix 'softmu' typo Laurent Vivier
@ 2018-12-18 14:28 ` Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 3/4] vl: Use error_fatal to simplify obvious fatal errors (again) Laurent Vivier
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2018-12-18 14:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Halil Pasic, Laurent Vivier, qemu-block, Cornelia Huck,
	Christian Borntraeger, Michael Tokarev, Richard Henderson,
	Paolo Bonzini, Michael Roth, Eduardo Habkost, qemu-s390x,
	Collin Walling, Markus Armbruster, Daniel P. Berrangé,
	David Hildenbrand, Kevin Wolf, Max Reitz, qemu-trivial,
	Roman Bolshakov

From: Roman Bolshakov <r.bolshakov@yadro.com>

It's going to clutter QEMU logs if 0x0f00 is trapped.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20181203100415.53027-2-r.bolshakov@yadro.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 target/i386/hvf/x86_decode.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/i386/hvf/x86_decode.c b/target/i386/hvf/x86_decode.c
index d125a6ef83..5f513c5563 100644
--- a/target/i386/hvf/x86_decode.c
+++ b/target/i386/hvf/x86_decode.c
@@ -525,8 +525,6 @@ static void decode_sldtgroup(CPUX86State *env, struct x86_decode *decode)
         X86_DECODE_CMD_INVL
     };
     decode->cmd = group[decode->modrm.reg];
-    printf("%llx: decode_sldtgroup: %d\n", env->hvf_emul->fetch_rip,
-            decode->modrm.reg);
 }
 
 static void decode_lidtgroup(CPUX86State *env, struct x86_decode *decode)
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PULL 3/4] vl: Use error_fatal to simplify obvious fatal errors (again)
  2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 1/4] docs/devel/build-system: fix 'softmu' typo Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 2/4] i386: hvf: drop debug printf in decode_sldtgroup Laurent Vivier
@ 2018-12-18 14:28 ` Laurent Vivier
  2018-12-18 14:28 ` [Qemu-devel] [PULL 4/4] error: Remove NULL checks on error_propagate() calls Laurent Vivier
  2018-12-19 18:49 ` [Qemu-devel] [PULL 0/4] Trivial patches patches Peter Maydell
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2018-12-18 14:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Halil Pasic, Laurent Vivier, qemu-block, Cornelia Huck,
	Christian Borntraeger, Michael Tokarev, Richard Henderson,
	Paolo Bonzini, Michael Roth, Eduardo Habkost, qemu-s390x,
	Collin Walling, Markus Armbruster, Daniel P. Berrangé,
	David Hildenbrand, Kevin Wolf, Max Reitz, qemu-trivial

From: Markus Armbruster <armbru@redhat.com>

Patch created mechanically by rerunning:

    $ spatch --in-place --sp-file scripts/coccinelle/use-error_fatal.cocci \
             --macro-file scripts/cocci-macro-file.h vl.c

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181213175807.12039-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 vl.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/vl.c b/vl.c
index 2a8b2ee16d..530fad6a71 100644
--- a/vl.c
+++ b/vl.c
@@ -3133,11 +3133,8 @@ int main(int argc, char **argv, char **envp)
                     Visitor *v;
                     BlockdevOptions_queue *bdo;
 
-                    v = qobject_input_visitor_new_str(optarg, "driver", &err);
-                    if (!v) {
-                        error_report_err(err);
-                        exit(1);
-                    }
+                    v = qobject_input_visitor_new_str(optarg, "driver",
+                                                      &error_fatal);
 
                     bdo = g_new(BlockdevOptions_queue, 1);
                     visit_type_BlockdevOptions(v, NULL, &bdo->bdo,
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Qemu-devel] [PULL 4/4] error: Remove NULL checks on error_propagate() calls
  2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
                   ` (2 preceding siblings ...)
  2018-12-18 14:28 ` [Qemu-devel] [PULL 3/4] vl: Use error_fatal to simplify obvious fatal errors (again) Laurent Vivier
@ 2018-12-18 14:28 ` Laurent Vivier
  2018-12-19 18:49 ` [Qemu-devel] [PULL 0/4] Trivial patches patches Peter Maydell
  4 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2018-12-18 14:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Halil Pasic, Laurent Vivier, qemu-block, Cornelia Huck,
	Christian Borntraeger, Michael Tokarev, Richard Henderson,
	Paolo Bonzini, Michael Roth, Eduardo Habkost, qemu-s390x,
	Collin Walling, Markus Armbruster, Daniel P. Berrangé,
	David Hildenbrand, Kevin Wolf, Max Reitz, qemu-trivial

From: Markus Armbruster <armbru@redhat.com>

Patch created mechanically by rerunning:

  $  spatch --sp-file scripts/coccinelle/error_propagate_null.cocci \
            --macro-file scripts/cocci-macro-file.h \
            --dir . --in-place

Whitespace tidied up manually.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181213173113.11211-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 blockdev.c              | 4 +---
 hw/s390x/s390-pci-bus.c | 4 +---
 qga/commands-posix.c    | 7 ++-----
 3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/blockdev.c b/blockdev.c
index e6c8349409..a6f71f9d83 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -992,9 +992,7 @@ DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type,
     blk = blockdev_init(filename, bs_opts, &local_err);
     bs_opts = NULL;
     if (!blk) {
-        if (local_err) {
-            error_propagate(errp, local_err);
-        }
+        error_propagate(errp, local_err);
         goto fail;
     } else {
         assert(!local_err);
diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
index 99d0368868..f7458445c0 100644
--- a/hw/s390x/s390-pci-bus.c
+++ b/hw/s390x/s390-pci-bus.c
@@ -731,9 +731,7 @@ static void s390_pcihost_realize(DeviceState *dev, Error **errp)
 
     css_register_io_adapters(CSS_IO_ADAPTER_PCI, true, false,
                              S390_ADAPTER_SUPPRESSIBLE, &local_err);
-    if (local_err) {
-        error_propagate(errp, local_err);
-    }
+    error_propagate(errp, local_err);
 }
 
 static int s390_pci_msix_init(S390PCIBusDevice *pbdev)
diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 1877976522..2e719d9b6b 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -1573,10 +1573,7 @@ static bool systemd_supports_mode(SuspendMode mode, Error **errp)
         return true;
     }
 
-    if (local_err) {
-        error_propagate(errp, local_err);
-    }
-
+    error_propagate(errp, local_err);
     return false;
 }
 
@@ -1782,7 +1779,7 @@ static void guest_suspend(SuspendMode mode, Error **errp)
     if (!mode_supported) {
         error_setg(errp,
                    "the requested suspend mode is not supported by the guest");
-    } else if (local_err) {
+    } else {
         error_propagate(errp, local_err);
     }
 }
-- 
2.19.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] [PULL 0/4] Trivial patches patches
  2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
                   ` (3 preceding siblings ...)
  2018-12-18 14:28 ` [Qemu-devel] [PULL 4/4] error: Remove NULL checks on error_propagate() calls Laurent Vivier
@ 2018-12-19 18:49 ` Peter Maydell
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2018-12-19 18:49 UTC (permalink / raw)
  To: Laurent Vivier
  Cc: QEMU Developers, Kevin Wolf, Collin Walling, Eduardo Habkost,
	Qemu-block, David Hildenbrand, QEMU Trivial, Markus Armbruster,
	Cornelia Huck, Michael Tokarev, Michael Roth, Halil Pasic,
	Christian Borntraeger, qemu-s390x, Paolo Bonzini, Max Reitz,
	Richard Henderson

On Tue, 18 Dec 2018 at 14:53, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit f163448536e5f7ae8905b14547eab37a41a75f6c:
>
>   Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20181216' into staging (2018-12-17 13:04:25 +0000)
>
> are available in the Git repository at:
>
>   git://github.com/vivier/qemu.git tags/trivial-patches-pull-request
>
> for you to fetch changes up to b2322003b6389c7c98104c8626ffa342928ba83c:
>
>   error: Remove NULL checks on error_propagate() calls (2018-12-18 14:57:48 +0100)
>
> ----------------------------------------------------------------
> Trivial patches (2018-12-18)
>
> ----------------------------------------------------------------

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.0
for any user-visible changes.

-- PMM

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-19 18:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-18 14:28 [Qemu-devel] [PULL 0/4] Trivial patches patches Laurent Vivier
2018-12-18 14:28 ` [Qemu-devel] [PULL 1/4] docs/devel/build-system: fix 'softmu' typo Laurent Vivier
2018-12-18 14:28 ` [Qemu-devel] [PULL 2/4] i386: hvf: drop debug printf in decode_sldtgroup Laurent Vivier
2018-12-18 14:28 ` [Qemu-devel] [PULL 3/4] vl: Use error_fatal to simplify obvious fatal errors (again) Laurent Vivier
2018-12-18 14:28 ` [Qemu-devel] [PULL 4/4] error: Remove NULL checks on error_propagate() calls Laurent Vivier
2018-12-19 18:49 ` [Qemu-devel] [PULL 0/4] Trivial patches patches Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).