Skip to content
Snippets Groups Projects
  1. Mar 20, 2018
  2. Mar 19, 2018
  3. Mar 13, 2018
  4. Mar 12, 2018
  5. Mar 02, 2018
  6. Mar 01, 2018
  7. Feb 19, 2018
  8. Feb 14, 2018
  9. Feb 13, 2018
  10. Feb 09, 2018
  11. Feb 08, 2018
  12. Jan 23, 2018
  13. Jan 22, 2018
  14. Jan 19, 2018
    • Haozhong Zhang's avatar
      nvdimm: add 'unarmed' option · cb836434
      Haozhong Zhang authored
      
      Currently the only vNVDIMM backend can guarantee the guest write
      persistence is device DAX on Linux, because no host-side kernel cache
      is involved in the guest access to it. The approach to detect whether
      the backend is device DAX needs to access sysfs, which may not work
      with SELinux.
      
      Instead, we add the 'unarmed' option to device 'nvdimm', so that users
      or management utils, which have enough knowledge about the backend,
      can control the unarmed flag in guest ACPI NFIT via this option. The
      guest Linux NVDIMM driver, for example, will mark the corresponding
      vNVDIMM device read-only if the unarmed flag in guest NFIT is set.
      
      The default value of 'unarmed' option is 'off' in order to keep the
      backwards compatibility.
      
      Signed-off-by: default avatarHaozhong Zhang <haozhong.zhang@intel.com>
      Message-Id: <20171211072806.2812-4-haozhong.zhang@intel.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      cb836434
    • Haozhong Zhang's avatar
      hostmem-file: add "align" option · 98376843
      Haozhong Zhang authored
      
      When mmap(2) the backend files, QEMU uses the host page size
      (getpagesize(2)) by default as the alignment of mapping address.
      However, some backends may require alignments different than the page
      size. For example, mmap a device DAX (e.g., /dev/dax0.0) on Linux
      kernel 4.13 to an address, which is 4K-aligned but not 2M-aligned,
      fails with a kernel message like
      
      [617494.969768] dax dax0.0: qemu-system-x86: dax_mmap: fail, unaligned vma (0x7fa37c579000 - 0x7fa43c579000, 0x1fffff)
      
      Because there is no common approach to get such alignment requirement,
      we add the 'align' option to 'memory-backend-file', so that users or
      management utils, which have enough knowledge about the backend, can
      specify a proper alignment via this option.
      
      Signed-off-by: default avatarHaozhong Zhang <haozhong.zhang@intel.com>
      Message-Id: <20171211072806.2812-2-haozhong.zhang@intel.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      [ehabkost: fixed typo, fixed error_setg() format string]
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      98376843
  15. Jan 18, 2018
Loading