qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 13/20] target/i386: add explicit initialisation for MexTxA


From: Richard Henderson
Subject: Re: [PATCH v5 13/20] target/i386: add explicit initialisation for MexTxAttrs
Date: Sat, 12 Nov 2022 15:49:16 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 11/12/22 04:25, Alex Bennée wrote:
diff --git a/target/i386/hax/hax-all.c b/target/i386/hax/hax-all.c
index b185ee8de4..337090e16f 100644
--- a/target/i386/hax/hax-all.c
+++ b/target/i386/hax/hax-all.c
@@ -385,7 +385,7 @@ static int hax_handle_io(CPUArchState *env, uint32_t df, 
uint16_t port,
  {
      uint8_t *ptr;
      int i;
-    MemTxAttrs attrs = { 0 };
+    MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED;
if (!df) {
          ptr = (uint8_t *) buffer;
diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c
index b75738ee9c..cb0720a6fa 100644
--- a/target/i386/nvmm/nvmm-all.c
+++ b/target/i386/nvmm/nvmm-all.c
@@ -502,7 +502,7 @@ nvmm_vcpu_post_run(CPUState *cpu, struct nvmm_vcpu_exit 
*exit)
  static void
  nvmm_io_callback(struct nvmm_io *io)
  {
-    MemTxAttrs attrs = { 0 };
+    MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED;
      int ret;
ret = address_space_rw(&address_space_io, io->port, attrs, io->data,
diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c
index e738d83e81..42846144dd 100644
--- a/target/i386/whpx/whpx-all.c
+++ b/target/i386/whpx/whpx-all.c
@@ -791,7 +791,7 @@ static HRESULT CALLBACK whpx_emu_ioport_callback(
      void *ctx,
      WHV_EMULATOR_IO_ACCESS_INFO *IoAccess)
  {
-    MemTxAttrs attrs = { 0 };
+    MemTxAttrs attrs = MEMTXATTRS_UNSPECIFIED;
      address_space_rw(&address_space_io, IoAccess->Port, attrs,
                       &IoAccess->Data, IoAccess->AccessSize,
                       IoAccess->Direction);

All three of these are hypervisor callouts to handle i/o for the guest, just 
like kvm.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]