qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects


From: Bharata B Rao
Subject: Re: [Qemu-devel] [RFC V2 10/10] cpus: reclaim allocated vCPU objects
Date: Thu, 11 Sep 2014 18:07:23 +0530

On Thu, Sep 11, 2014 at 3:23 PM, Gu Zheng <address@hidden> wrote:
> On 09/11/2014 05:35 PM, Bharata B Rao wrote:
>
>> On Thu, Aug 28, 2014 at 9:06 AM, Gu Zheng <address@hidden> wrote:
>>> After ACPI get a signal to eject a vCPU, the vCPU must be
>>> removed from CPU list,before the vCPU really removed,  then
>>> release the all related vCPU objects.
>>> But we do not close KVM vcpu fd, just record it into a list, in
>>> order to reuse it.
>>
>> After I add and delete a CPU, "info cpus" from monitor still lists the
>> removed CPU. Is this expected ?
>
> No, you can not see the removed cpu from QEMU (e.g. monitor) or guest side,
> but from the kernel side it is still there, just no one uses it any more.

I am trying your patches, but still see the removed CPU after deletion.

(qemu) info cpus
* CPU #0: pc=0xffffffff8100b82c (halted) thread_id=7812
  CPU #1: pc=0xffffffff8100b82c (halted) thread_id=7813
  CPU #2: pc=0xffffffff8100b82c (halted) thread_id=7814
  CPU #3: pc=0xffffffff8100b82c (halted) thread_id=7815
  CPU #4: pc=0xffffffff8100b82c (halted) thread_id=7816
  CPU #5: pc=0xffffffff8100b82c (halted) thread_id=7817
  CPU #6: pc=0xffffffff8100b82c (halted) thread_id=7818
  CPU #7: pc=0xffffffff8100b82c (halted) thread_id=7819
(qemu) device_add qemu64-x86_64-cpu,id=cpu8
(qemu) info cpus
* CPU #0: pc=0xffffffff8100b82c (halted) thread_id=7812
  CPU #1: pc=0xffffffff8100b82c (halted) thread_id=7813
  CPU #2: pc=0xffffffff8100b82c (halted) thread_id=7814
  CPU #3: pc=0xffffffff8100b82c (halted) thread_id=7815
  CPU #4: pc=0xffffffff8100b82c (halted) thread_id=7816
  CPU #5: pc=0xffffffff8100b82c (halted) thread_id=7817
  CPU #6: pc=0xffffffff8100b82c (halted) thread_id=7818
  CPU #7: pc=0xffffffff8100b82c (halted) thread_id=7819
  CPU #8: pc=0xffffffff8100b82c (halted) thread_id=8041
(qemu) device_del cpu8
(qemu) info cpus
* CPU #0: pc=0xffffffff8100b82c (halted) thread_id=7812
  CPU #1: pc=0xffffffff8100b82c (halted) thread_id=7813
  CPU #2: pc=0xffffffff8100b82c (halted) thread_id=7814
  CPU #3: pc=0xffffffff8100b82c (halted) thread_id=7815
  CPU #4: pc=0xffffffff8100b82c (halted) thread_id=7816
  CPU #5: pc=0xffffffff8100b82c (halted) thread_id=7817
  CPU #6: pc=0xffffffff8100b82c (halted) thread_id=7818
  CPU #7: pc=0xffffffff8100b82c (halted) thread_id=7819
  CPU #8: pc=0xffffffff81031722 (halted) thread_id=8041

I applied your patchset on commit 69f87f713069f1f70, may be I should
try with latest QEMU ?

Regards,
Bharata.



reply via email to

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