|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug
To: |
Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> |
Subject: |
RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug |
From: |
"Liu, Jinsong" <jinsong.liu@xxxxxxxxx> |
Date: |
Wed, 25 Aug 2010 12:53:34 +0800 |
Accept-language: |
en-US |
Acceptlanguage: |
en-US |
Cc: |
"Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Li, Xin" <xin.li@xxxxxxxxx> |
Delivery-date: |
Tue, 24 Aug 2010 21:54:22 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<19571.54507.780108.421366@xxxxxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<BC00F5384FCFC9499AF06F92E8B78A9E0B0007FD20@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19554.43920.11785.97567@xxxxxxxxxxxxxxxxxxxxxxxx> <BC00F5384FCFC9499AF06F92E8B78A9E164C8CB703@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19563.58860.249044.209893@xxxxxxxxxxxxxxxxxxxxxxxx> <BC00F5384FCFC9499AF06F92E8B78A9E165097298D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19565.17092.616097.195948@xxxxxxxxxxxxxxxxxxxxxxxx> <BC00F5384FCFC9499AF06F92E8B78A9E16509730BB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19566.33227.5055.515834@xxxxxxxxxxxxxxxxxxxxxxxx> <BC00F5384FCFC9499AF06F92E8B78A9E18373CEDBE@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <19571.54507.780108.421366@xxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
ActDl2KR65f1GpJUQ0CSYkxqKqD6SAAdbr0w |
Thread-topic: |
[Xen-devel] [PATCH] Fix hvm vcpu hotplug bug |
Ian Jackson wrote:
> Liu, Jinsong writes ("RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug
> bug"):
>> Ian Jackson wrote:
>>> Liu, Jinsong writes ("RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug
>>> bug"):
>>>> [linux/drivers/acpi/acpica/ will:]
>>>> 1). clear pge_en x by writing '0' to the bit;
>>>> 2). asynchronic call control method;
>>>> 3). clear gpe_sts x by writing '1' to the bit;
>>>> 4). re-enable gpe_en x by writing '1' to the bit;
>>>
>>> So the code in qemu should never clear gpe_sts itself.
>>
>> No, that's just what qemu should do, to simulate hardware behavior.
>
> Obviously I still haven't understood. If the guest kernel driver is
> supposed to clear this bit as you seem to say above, then it should
> not be cleared automatically by qemu-dm as part of the hotplug
> notification.
Of course hotplug notification will not clear gpe_sts.
At qemu side, 'hotplug notification' and 'clear gpe_sts' are asynchronic:
1) qemu: hotplug notification trigger sci,
2) guest kernel:
a). clear pge_en x by writing '0' to the bit;
b). asynchronically clear gpe_sts x by writing '1' to the bit;
c). re-enable gpe_en x by writing '1' to the bit;
3) qemu: gpe_en_write/gpe_sts_write will simulate the hardware action to set or
clear gpe_en/gpe_sts.
What I mean is, currently at qmeu side, it need add the logic of 'multi gpe -->
OR --> sci' logic.
(i.e, at current qemu hw/piix4acpi.c, gpe_sts_write and gpe_en_write cannot
handle multi gpe).
Only after add the logic, it could be clean to handle 'vcpu hotplug' at qmeu.
Thanks,
Jinsong
>
> Obviously the register ought to be emulated by qemu and the bit ought
> to be cleared in qemu when the kernel driver writes an inactive value
> to it.
>
> None of this seems to be implemented in qemu right now AFAICT ?
>
> Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Liu, Jinsong
- Re: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Ian Jackson
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Liu, Jinsong
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Ian Jackson
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Liu, Jinsong
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Ian Jackson
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Liu, Jinsong
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Ian Jackson
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Liu, Jinsong
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug, Ian Jackson
- RE: [Xen-devel] [PATCH] Fix hvm vcpu hotplug bug,
Liu, Jinsong <=
|
|
|
|
|