LibVirt: Initial support for virtio-scsi virtual drives (read: ssd trim)
Open
Nobody has claimed this yet.
feature request
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
User story
As an engineer
I would like to add support for virtio-scsi devices in Libvirt.pm
so I can automate usage of para-virtualized SCSI controller devices
Describe the solution you'd like
- Honour
driver_cacheanddriver_discardkeys in storage disk config. - Add a SCSI controller if any of the storage disks have SCSI as the target bus.
Such that we could do e.g:
vm create => 'foo',
type => 'kvm',
storage => [
{
dev => 'sda',
bus => 'scsi',
driver_cache => 'writeback',
driver_discard => 'unmap',
}
],
...
Describe alternatives you've considered
N/A
Additional context
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Libvirt.pm and trace how storage disk configuration is translated for Libvirt. Check the existing handling of storage disks and determine where driver_cache, driver_discard, and an SCSI controller should be represented. Done means SCSI-targeted disks produce the controller and the requested driver settings are honored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100