* [PATCH] qemu-kvm: Mark VCPU state dirty on creation
@ 2011-02-21 11:28 Jan Kiszka
2011-02-28 9:20 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2011-02-21 11:28 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: kvm
This avoids that early cpu_synchronize_state calls try to retrieve an
uninitialized state from the kernel, which even causes a deadlock.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Corresponding upstream patch will come with next uq/master series.
qemu-kvm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 15e552a..106f148 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -259,6 +259,7 @@ static void kvm_create_vcpu(CPUState *env, int id)
env->kvm_fd = r;
env->kvm_state = kvm_state;
+ env->kvm_vcpu_dirty = 1;
mmap_size = kvm_ioctl(kvm_state, KVM_GET_VCPU_MMAP_SIZE, 0);
if (mmap_size < 0) {
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] qemu-kvm: Mark VCPU state dirty on creation
2011-02-21 11:28 [PATCH] qemu-kvm: Mark VCPU state dirty on creation Jan Kiszka
@ 2011-02-28 9:20 ` Avi Kivity
2011-02-28 10:15 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2011-02-28 9:20 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Marcelo Tosatti, kvm
On 02/21/2011 01:28 PM, Jan Kiszka wrote:
> This avoids that early cpu_synchronize_state calls try to retrieve an
> uninitialized state from the kernel,
Thanks, applied.
> which even causes a deadlock.
>
How?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] qemu-kvm: Mark VCPU state dirty on creation
2011-02-28 9:20 ` Avi Kivity
@ 2011-02-28 10:15 ` Jan Kiszka
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2011-02-28 10:15 UTC (permalink / raw)
To: Avi Kivity; +Cc: Marcelo Tosatti, kvm
On 2011-02-28 10:20, Avi Kivity wrote:
> On 02/21/2011 01:28 PM, Jan Kiszka wrote:
>> This avoids that early cpu_synchronize_state calls try to retrieve an
>> uninitialized state from the kernel,
>
> Thanks, applied.
>
>> which even causes a deadlock.
>>
>
> How?
Early hw_error. It collects the CPU states, also during initial device
setup, ie. before the VCPUs have been started.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-28 10:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21 11:28 [PATCH] qemu-kvm: Mark VCPU state dirty on creation Jan Kiszka
2011-02-28 9:20 ` Avi Kivity
2011-02-28 10:15 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox