accel/nvmm: Fix 'cpu' typo in nvmm_init_vcpu()
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;
| ^~---
Untested.
--- target/i386/nvmm/nvmm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ;
Signature · 1 line
2.52.0
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; | ^~Reported-by Thomas Huth <[email protected]>Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Untested.--- target/i386/nvmm/nvmm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/i386/nvmm/nvmm-all.c +0
-0
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:
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; | ^~Reported-by Thomas Huth <[email protected]>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
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
Reported-by Thomas Huth <[email protected]>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
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; | ^~Reported-by Thomas Huth <[email protected]>Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
Untested.--- target/i386/nvmm/nvmm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)target/i386/nvmm/nvmm-all.c +0
-0
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
Philippe Mathieu-Daudé
AppliedQuoted 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; | ^~Reported-by Thomas Huth <[email protected]>Fixes 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 5 lines
---
Untested.--- target/i386/nvmm/nvmm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Queued via accel-next tree, thanks.