Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-110007

Add "auto" value for block limit device properties

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • qemu-kvm / Storage
    • None
    • rhel-virt-storage
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Planning backlog
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Goal

      As I user, I want to automatically configure virtual disks for my VMs with block limits that match the host storage so that performance isn't negatively impacted by a mismatch.

      One way to achieve this is adding an "auto" value to the existing block limit properties, e.g. -device virtio-blk,discard_granularity=auto. This "auto" value should then be added for the following properties:

      • logical_block_size (matches backend request_alignment, but at least 512)
      • opt_io_size (matches backend opt_transfer)
      • discard_granularity (matches backend pdiscard_alignment)

      Covering physical_block_size and min_io_size as well would be nice, but this is not a value QEMU detects for BlockLimits yet, so this would have to be a separate story. (Though there is a very limited bdrv_probe_blocksizes() that could possibly be extended to achieve this.)

      Possibly the existing backend-defaults property can help, too, but in any case the interactions between it and any other changes to properties need to be considered.

      Acceptance criteria

      TBD

              eblake_redhat Eric Blake
              kwolf@redhat.com Kevin Wolf
              virt-maint virt-maint
              Tingting Mao Tingting Mao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: