[libvirt] Question about the specification of "virsh vcpupin" and "virsh vcpuinfo" in libvirt-0.6.1.

Takahashi Tomohiro takatom at jp.fujitsu.com
Tue Apr 14 07:40:46 UTC 2009


Hi Daniel-san,

Thank you for your reply.

 > virsh doesn't place any restrictions on whether those commands can
 > be run on inactive guests. It should just try the API regardless
 > and be prepared for any errors.

I see.
I think that I should remove the following check from xend_internal.c 
PinVcpu method.
Because the latest Xen supports this.

So, I made the patch that corrected the following problem.
"virsh vcpupin" and "virsh vcpuinfo" can not be executed to inactive 
domains.

 > If XenD supports this then it should be just a matter of removing the
 > check from xend_internal.c   PinVcpu method
 >
 >    if (domain->id < 0) {
 >         virXendError(domain->conn, VIR_ERR_INVALID_ARG,
 >                      _("Domain %s isn't running."), domain->name);
 >         return(-1);
 >     }

Signed-off-by: Tomohiro Takahashi <takatom at jp.fujitsu.com>

Thanks,
Tomohiro Takahashi

Daniel P. Berrange wrote:
> On Wed, Apr 01, 2009 at 03:53:16PM +0900, Takahashi Tomohiro wrote:
>> Hi,
>>
>> I have questions.
>>
>> I would like to know the specification of "virsh vcpupin" and "virsh
>> vcpuinfo" in libvirt-0.6.1.
>> "virsh vcpupin" and "virsh vcpuinfo" can not be executed to inactive
>> domains.
>> I think it is the specification.
>> Is it correct ?
> 
> virsh doesn't place any restrictions on whether those commands can
> be run on inactive guests. It should just try the API regardless
> and be prepared for any errors.
> 
>> I would like to know whether the libvirt-community have a support plan
>> for pinning inactive domains or not.
>> Because "xm vcpu-pin" and "vcpu-list" can be excuted to inactive
>> domains in Xen3.3.
> 
> If XenD supports this then it should be just a matter of removing the
> check from xend_internal.c   PinVcpu method
> 
>    if (domain->id < 0) {
>         virXendError(domain->conn, VIR_ERR_INVALID_ARG,
>                      _("Domain %s isn't running."), domain->name);
>         return(-1);
>     }
> 
> Daniel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Fix_vcpupin_vcpuinfo_inactive_domains_on_the_latest_Xen.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090414/4242f917/attachment-0001.ksh>


More information about the libvir-list mailing list