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

Re: [libvirt] [PATCH 1/5] fix typo in the word affinities



On 2012年12月17日 23:17, Martin Kletzander wrote:
This patch fixes just the word Affinites to Affinities (it's really
painful to search in TAGS without being able to find the right
function).
---
  src/libxl/libxl_driver.c | 4 ++--
  src/qemu/qemu_process.c  | 8 ++++----
  2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index 302f81c..de31e12 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -609,7 +609,7 @@ error:
  }

  static int
-libxlDomainSetVcpuAffinites(libxlDriverPrivatePtr driver, virDomainObjPtr vm)
+libxlDomainSetVcpuAffinities(libxlDriverPrivatePtr driver, virDomainObjPtr vm)
  {
      libxlDomainObjPrivatePtr priv = vm->privateData;
      virDomainDefPtr def = vm->def;
@@ -808,7 +808,7 @@ libxlVmStart(libxlDriverPrivatePtr driver, virDomainObjPtr vm,
      if (libxlCreateDomEvents(vm)<  0)
          goto error;

-    if (libxlDomainSetVcpuAffinites(driver, vm)<  0)
+    if (libxlDomainSetVcpuAffinities(driver, vm)<  0)
          goto error;

      if (!start_paused) {
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index cc0e947..89796af 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2025,7 +2025,7 @@ qemuProcessSetLinkStates(virDomainObjPtr vm)

  /* Set CPU affinities for vcpus if vcpupin xml provided. */
  static int
-qemuProcessSetVcpuAffinites(virConnectPtr conn ATTRIBUTE_UNUSED,
+qemuProcessSetVcpuAffinities(virConnectPtr conn ATTRIBUTE_UNUSED,
                              virDomainObjPtr vm)
  {
      qemuDomainObjPrivatePtr priv = vm->privateData;
@@ -2058,7 +2058,7 @@ cleanup:

  /* Set CPU affinities for emulator threads. */
  static int
-qemuProcessSetEmulatorAffinites(virConnectPtr conn ATTRIBUTE_UNUSED,
+qemuProcessSetEmulatorAffinities(virConnectPtr conn ATTRIBUTE_UNUSED,
                                  virDomainObjPtr vm)
  {
      virBitmapPtr cpumask;
@@ -3845,11 +3845,11 @@ int qemuProcessStart(virConnectPtr conn,
          goto cleanup;

      VIR_DEBUG("Setting VCPU affinities");
-    if (qemuProcessSetVcpuAffinites(conn, vm)<  0)
+    if (qemuProcessSetVcpuAffinities(conn, vm)<  0)
          goto cleanup;

      VIR_DEBUG("Setting affinity of emulator threads");
-    if (qemuProcessSetEmulatorAffinites(conn, vm)<  0)
+    if (qemuProcessSetEmulatorAffinities(conn, vm)<  0)
          goto cleanup;

      VIR_DEBUG("Setting any required VM passwords");


ACK


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