1. 28 2月, 2018 1 次提交
    • L
      nwfilter: save error from DHCP snoop thread to report in main thread · 1297db74
      Laine Stump 提交于
      A problem encountered due to a bug in libpcap was reported to the
      caller as:
      
         An error occurred, but the cause is unknown
      
      This was because the error had been logged in the DHCPSnoop
      thread. The worker thread handling the API call to start a domain
      spins up the DHCPSnoop thread which watches for dhcp packets with
      libpcap, then uses virCondSignal() to notify the worker thread (which
      has been waiting with virCondWait()). The worker thread knows that
      there was an error (because threadStatus != THREAD_STATUS_OK), but the
      error info had been stored in thread-specific storage for the other
      thread, so the worker thread can only report that there was a failure,
      but it doesn't know why.
      
      The solution is to save the error that was logged (with
      virErrorPreserveLast() into the object the is used to share info
      between the threads, then we can set the error in the worker thread
      using virErrorRestore().
      
      In the case of the error I was looking at, this changed the "unknown"
      message into:
      
          internal error: pcap_setfilter: can't remove kernel filter:
          Bad file descriptor
      Signed-off-by: NLaine Stump <laine@laine.org>
      1297db74
  2. 27 2月, 2018 3 次提交
  3. 26 2月, 2018 7 次提交
  4. 24 2月, 2018 1 次提交
    • J
      libxl: round memory values to next 1MiB increment · ef71caea
      Jim Fehlig 提交于
      libxl requires the memory sizes to be rounded to 1MiB increments.
      Attempting to start a domain that violates this requirement will
      fail with the marginally helpful error
      
      2018-02-22 01:55:32.921+0000: xc: panic: xc_dom_boot.c:141: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
      2018-02-22 01:55:32.921+0000: libxl: libxl_dom.c:671:libxl__build_dom: xc_dom_boot_mem_init failed: No such file or directory
      
      Round the maximum and current memory values to the next 1MiB
      increment when generating the libxl_domain_config object.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      ef71caea
  5. 23 2月, 2018 24 次提交
  6. 22 2月, 2018 4 次提交