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

Re: [libvirt] [PATCH 09/13] Introduce qemudDomainPinHypervisorFlags and qemudDomainGetHypervisorPinInfo in qemu driver.



On Tue, Jul 10, 2012 at 05:17:45PM +0800, tangchen wrote:
> Introduce 2 APIs to support hypervisor threads pin in qemu driver.
>     1) qemudDomainPinHypervisorFlags: setup hypervisor threads pin info.
>     2) qemudDomainGetHypervisorPinInfo: get all hypervisor threads pin info.
> They are similar to qemudDomainPinVcpuFlags and qemudDomainGetVcpuPinInfo.
> 
> Signed-off-by: Tang Chen <tangchen cn fujitsu com>
> ---
>  src/driver.h           |   13 +++
>  src/qemu/qemu_driver.c |  223 ++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 236 insertions(+)
> 
> diff --git a/src/driver.h b/src/driver.h
> index b3c1740..31db44d 100644
> --- a/src/driver.h
> +++ b/src/driver.h
> @@ -302,6 +302,17 @@ typedef int
>                                           unsigned int flags);
>  
>  typedef int
> +        (*virDrvDomainPinHypervisorFlags)     (virDomainPtr domain,
> +                                               unsigned char *cpumap,
> +                                               int maplen,
> +                                               unsigned int flags);
> +typedef int
> +        (*virDrvDomainGetHypervisorPinInfo)   (virDomainPtr domain,
> +                                               unsigned char *cpumaps,
> +                                               int maplen,
> +                                               unsigned int flags);
> +
> +typedef int

This part ...

>          (*virDrvDomainGetVcpus)         (virDomainPtr domain,
>                                           virVcpuInfoPtr info,
>                                           int maxinfo,
> @@ -931,6 +942,8 @@ struct _virDriver {
>      virDrvDomainPinVcpu                 domainPinVcpu;
>      virDrvDomainPinVcpuFlags            domainPinVcpuFlags;
>      virDrvDomainGetVcpuPinInfo          domainGetVcpuPinInfo;
> +    virDrvDomainPinHypervisorFlags    domainPinHypervisorFlags;
> +    virDrvDomainGetHypervisorPinInfo  domainGetHypervisorPinInfo;

...and this part should have been squashed in patch 12, and re-arrange
patch 12 to make it appear before patch 9, 10 and 11.

>      virDrvDomainGetVcpus                domainGetVcpus;
>      virDrvDomainGetMaxVcpus             domainGetMaxVcpus;
>      virDrvDomainGetSecurityLabel        domainGetSecurityLabel;
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index 9f795c1..3a0ce2f 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -3845,6 +3845,227 @@ cleanup:
>  }
>  

<...>

> +static int
>  qemudDomainGetVcpus(virDomainPtr dom,
>                      virVcpuInfoPtr info,
>                      int maxinfo,
> @@ -13235,6 +13456,8 @@ static virDriver qemuDriver = {
>      .domainPinVcpu = qemudDomainPinVcpu, /* 0.4.4 */
>      .domainPinVcpuFlags = qemudDomainPinVcpuFlags, /* 0.9.3 */
>      .domainGetVcpuPinInfo = qemudDomainGetVcpuPinInfo, /* 0.9.3 */
> +    .domainPinHypervisorFlags = qemudDomainPinHypervisorFlags, /* 0.9.13 */
> +    .domainGetHypervisorPinInfo = qemudDomainGetHypervisorPinInfo, /* 0.9.13 */

0.0.14

>      .domainGetVcpus = qemudDomainGetVcpus, /* 0.4.4 */
>      .domainGetMaxVcpus = qemudDomainGetMaxVcpus, /* 0.4.4 */
>      .domainGetSecurityLabel = qemudDomainGetSecurityLabel, /* 0.6.1 */
> -- 
> 1.7.10.2
> 
> --
> libvir-list mailing list
> libvir-list redhat com
> https://www.redhat.com/mailman/listinfo/libvir-list

-- 
Thanks,
Hu Tao


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