Skip to contentSkip to conversation

accel/nvmm: Fix 'cpu' typo in nvmm_init_vcpu()

PATCH Applied Philippe Mathieu-Daudé 4 participants 6 messages Jan 13 – Jan 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel/nvmm: Fix 'cpu' typo in nvmm_init_vcpu()

Fix typo to avoid the following build failure:

target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty'

    988 |     qcpu->vcpu_dirty = true;
        |         ^~
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")

---
Untested.

---
 target/i386/nvmm/nvmm-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/nvmm/nvmm-all.c +1 -1
index b9bd9ed985a..f808828d492 100644
@@ -985,7 +985,7 @@ nvmm_init_vcpu(CPUState *cpu)
         }
     }
 
-    qcpu->vcpu_dirty = true;
+    cpu->vcpu_dirty = true;
     cpu->accel = qcpu;
 
     return 0;
Signature · 1 line
2.52.0
Tested-by on v1 1/1
#1 lore raw
Quoted 22 lines · Philippe Mathieu-Daudé

Fix typo to avoid the following build failure:

target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty'

     988 |     qcpu->vcpu_dirty = true;
         |         ^~
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")

---
Untested.

---
  target/i386/nvmm/nvmm-all.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/nvmm/nvmm-all.c +0 -0
index b9bd9ed985a..f808828d492 100644

target/i386/nvmm/nvmm-all.c nvmm_init_vcpu(CPUState *cpu) · line 991

Quoted 8 lines
target/i386/nvmm/nvmm-all.c +1 -1
@@ -985,7 +985,7 @@ nvmm_init_vcpu(CPUState *cpu)
          }
      }
 
-    qcpu->vcpu_dirty = true;
+    cpu->vcpu_dirty = true;
      cpu->accel = qcpu;
 
      return 0;

Thanks, this fixes the issue:

#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 10 lines · Philippe Mathieu-Daudé

Fix typo to avoid the following build failure:

target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty'

     988 |     qcpu->vcpu_dirty = true;
         |         ^~
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")

Hmm.. This commit is in 10.1 already, we had another release since that, 10.2.

Is this code being used at all?

Maybe it should have some tests?

Thanks,

/mjt

#3 lore raw
Quoted 8 lines · Michael Tokarev
Quoted 7 lines · Philippe Mathieu-Daudé

Fix typo to avoid the following build failure:

   target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
   target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty' 988 |     qcpu->vcpu_dirty = true;
         |         ^~

Quoted 8 lines
Quoted 3 lines
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")

Hmm..  This commit is in 10.1 already, we had another release since that, 10.2.

Is this code being used at all?

Apparently yes, in NetBSD. See around this thread:

https://lore.kernel.org/qemu-devel/[email protected]/

Quoted 6 lines

Maybe it should have some tests?

Thanks,

/mjt

Reviewed-by Tested-by on v1 1/1
#4 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 22 lines · Philippe Mathieu-Daudé

Fix typo to avoid the following build failure:

target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty'

     988 |     qcpu->vcpu_dirty = true;
         |         ^~
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")

---
Untested.

---
  target/i386/nvmm/nvmm-all.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/nvmm/nvmm-all.c +0 -0
index b9bd9ed985a..f808828d492 100644

target/i386/nvmm/nvmm-all.c nvmm_init_vcpu(CPUState *cpu) · line 991

Quoted 8 lines
target/i386/nvmm/nvmm-all.c +1 -1
@@ -985,7 +985,7 @@ nvmm_init_vcpu(CPUState *cpu)
          }
      }
 
-    qcpu->vcpu_dirty = true;
+    cpu->vcpu_dirty = true;
      cpu->accel = qcpu;
 
      return 0;

Regards,
Pierrick

#5 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 11 lines · Philippe Mathieu-Daudé

Fix typo to avoid the following build failure:

target/i386/nvmm/nvmm-all.c: In function 'nvmm_init_vcpu':
target/i386/nvmm/nvmm-all.c:988:9: error: 'AccelCPUState' has no member named 'vcpu_dirty'

     988 |     qcpu->vcpu_dirty = true;
         |         ^~
Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")
Quoted 5 lines

---
Untested.

---
  target/i386/nvmm/nvmm-all.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Queued via accel-next tree, thanks.