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;
| ^~
Cc: qemu-stable@nongnu.org
Reported-by: Thomas Huth <thuth@redhat.com>
Fixes: 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Untested.
---
target/i386/nvmm/nvmm-all.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c
index b9bd9ed985a..f808828d492 100644
--- a/target/i386/nvmm/nvmm-all.c
+++ b/target/i386/nvmm/nvmm-all.c
@@ -985,7 +985,7 @@ nvmm_init_vcpu(CPUState *cpu)
}
}
- qcpu->vcpu_dirty = true;
+ cpu->vcpu_dirty = true;
cpu->accel = qcpu;
return 0;
--
2.52.0
On 13/1/26 21:39, Philippe Mathieu-Daudé wrote:
> 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;
> | ^~
>
> Cc: qemu-stable@nongnu.org
> Reported-by: Thomas Huth <thuth@redhat.com>
> Fixes: 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Untested.
> ---
> target/i386/nvmm/nvmm-all.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Queued via accel-next tree, thanks.
On 1/13/26 12:39 PM, Philippe Mathieu-Daudé wrote:
> 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;
> | ^~
>
> Cc: qemu-stable@nongnu.org
> Reported-by: Thomas Huth <thuth@redhat.com>
> Fixes: 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Untested.
> ---
> target/i386/nvmm/nvmm-all.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c
> index b9bd9ed985a..f808828d492 100644
> --- a/target/i386/nvmm/nvmm-all.c
> +++ b/target/i386/nvmm/nvmm-all.c
> @@ -985,7 +985,7 @@ nvmm_init_vcpu(CPUState *cpu)
> }
> }
>
> - qcpu->vcpu_dirty = true;
> + cpu->vcpu_dirty = true;
> cpu->accel = qcpu;
>
> return 0;
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Tested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Regards,
Pierrick
On 1/13/26 23:39, Philippe Mathieu-Daudé wrote:
> 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;
> | ^~
>
> Cc: qemu-stable@nongnu.org
> Reported-by: Thomas Huth <thuth@redhat.com>
> 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
On 14/1/26 16:11, Michael Tokarev wrote:
> On 1/13/26 23:39, Philippe Mathieu-Daudé wrote:
>> 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;
>> | ^~
>>
>> Cc: qemu-stable@nongnu.org
>> Reported-by: Thomas Huth <thuth@redhat.com>
>> 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/ea1e0e45-f864-4a43-a40e-48fd82c26c56@redhat.com/
>
> Maybe it should have some tests?
>
> Thanks,
>
> /mjt
On 13/01/2026 21.39, Philippe Mathieu-Daudé wrote:
> 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;
> | ^~
>
> Cc: qemu-stable@nongnu.org
> Reported-by: Thomas Huth <thuth@redhat.com>
> Fixes: 2098164a6be ("accel/nvmm: Replace @dirty field by generic CPUState::vcpu_dirty field")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Untested.
> ---
> target/i386/nvmm/nvmm-all.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/i386/nvmm/nvmm-all.c b/target/i386/nvmm/nvmm-all.c
> index b9bd9ed985a..f808828d492 100644
> --- a/target/i386/nvmm/nvmm-all.c
> +++ b/target/i386/nvmm/nvmm-all.c
> @@ -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:
Tested-by: Thomas Huth <thuth@redhat.com>
© 2016 - 2026 Red Hat, Inc.