All of lore.kernel.org
 help / color / mirror / Atom feed
From: Magnus Kulke <magnuskulke@linux.microsoft.com>
To: Mohamed Mediouni <mohamed@unpredictable.fr>
Cc: qemu-devel@nongnu.org, "Phil Dennis-Jordan" <phil@philjordan.eu>,
	"Bernhard Beschow" <shentey@gmail.com>,
	"Cameron Esfahani" <dirty@apple.com>,
	qemu-arm@nongnu.org, "Peter Maydell" <peter.maydell@linaro.org>,
	"Roman Bolshakov" <rbolshakov@ddn.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Pedro Barbuda" <pbarbuda@microsoft.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Wei Liu" <wei.liu@kernel.org>, "Zhao Liu" <zhao1.liu@intel.com>
Subject: Re: [PATCH v3 03/14] target/i386/emulate/x86_decode: Actually use stream in decode_instruction_stream()
Date: Mon, 16 Feb 2026 12:23:25 +0100	[thread overview]
Message-ID: <aZL+LcWNBMGVBdTu@example.com> (raw)
In-Reply-To: <20260215052225.22513-4-mohamed@unpredictable.fr>

> Fixes: 1e25327b244a ("target/i386/emulate: Allow instruction decoding from stream")
> cc: qemu-stable
> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
> Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>
> ---
>  target/i386/emulate/x86_decode.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/i386/emulate/x86_decode.c b/target/i386/emulate/x86_decode.c
> index 6ad03b71b0..7bbcd2a9a2 100644
> --- a/target/i386/emulate/x86_decode.c
> +++ b/target/i386/emulate/x86_decode.c
> @@ -2088,8 +2088,6 @@ static void decode_opcodes(CPUX86State *env, struct x86_decode *decode)
>  
>  static uint32_t decode_opcode(CPUX86State *env, struct x86_decode *decode)
>  {
> -    memset(decode, 0, sizeof(*decode));
> -
>      decode_prefix(env, decode);
>      set_addressing_size(env, decode);
>      set_operand_size(env, decode);
> @@ -2101,6 +2099,8 @@ static uint32_t decode_opcode(CPUX86State *env, struct x86_decode *decode)
>  
>  uint32_t decode_instruction(CPUX86State *env, struct x86_decode *decode)
>  {
> +    memset(decode, 0, sizeof(*decode));
> +
>      return decode_opcode(env, decode);
>  }
>  
> -- 
> 2.50.1 (Apple Git-155)

Tested-by: Magnus Kulke <magnuskulke@linux.microsoft.com>

makes sense, thx.


  reply	other threads:[~2026-02-16 14:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-15  5:22 [PATCH v3 00/14] whpx: x86 updates (2026-02) Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 01/14] target/i386/emulate/x86_decode: Fix compiler warning Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 02/14] target/i386/hvf/x86_mmu: " Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 03/14] target/i386/emulate/x86_decode: Actually use stream in decode_instruction_stream() Mohamed Mediouni
2026-02-16 11:23   ` Magnus Kulke [this message]
2026-02-15  5:22 ` [PATCH v3 04/14] target/i386: emulate, hvf: move x86_mmu to common code Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 05/14] whpx: i386: re-enable guest debug support Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 06/14] whpx: preparatory changes before switching over from winhvemulation Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 07/14] whpx: refactor whpx_destroy_vcpu to arch-specific function Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 08/14] whpx: move whpx_get_reg/whpx_set_reg to generic code Mohamed Mediouni
2026-02-16 18:45   ` Bernhard Beschow
2026-02-15  5:22 ` [PATCH v3 09/14] whpx: i386: switch over from winhvemulation to target/i386/emulate Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 10/14] whpx: i386: remove remaining winhvemulation support code Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 11/14] whpx: i386: remove messages Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 12/14] whpx: i386: remove CPUID trapping Mohamed Mediouni
2026-02-15  5:22 ` [PATCH v3 13/14] whpx: common, i386, arm: rework state levels Mohamed Mediouni
2026-02-16 17:27   ` Philippe Mathieu-Daudé
2026-02-15  5:22 ` [PATCH v3 14/14] whpx: i386: saving/restoring less state for WHPX_LEVEL_FAST_RUNTIME_STATE Mohamed Mediouni
2026-02-16 18:41   ` Bernhard Beschow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aZL+LcWNBMGVBdTu@example.com \
    --to=magnuskulke@linux.microsoft.com \
    --cc=berrange@redhat.com \
    --cc=dirty@apple.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mohamed@unpredictable.fr \
    --cc=pbarbuda@microsoft.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=phil@philjordan.eu \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rbolshakov@ddn.com \
    --cc=shentey@gmail.com \
    --cc=wei.liu@kernel.org \
    --cc=zhao1.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.