* driver type raw-xz supports discard=unmap? @ 2022-07-22 20:03 Chris Murphy 2022-07-25 9:13 ` Daniel P. Berrangé 0 siblings, 1 reply; 5+ messages in thread From: Chris Murphy @ 2022-07-22 20:03 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: text/plain, Size: 357 bytes --] Is this valid? `<disk device="disk" type="file"> <target dev="vda" bus="virtio"/> <source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/> <driver name="qemu" type="raw-xz" discard="unmap"/>` `/> </disk>` I know type="raw" works fine, I'm wondering if there'd be any problem with type "raw-xz" combined with discards? Thanks, Chris Murphy [-- Attachment #2: Type: text/html, Size: 729 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: driver type raw-xz supports discard=unmap? 2022-07-22 20:03 driver type raw-xz supports discard=unmap? Chris Murphy @ 2022-07-25 9:13 ` Daniel P. Berrangé 2022-07-25 12:51 ` Chris Murphy 0 siblings, 1 reply; 5+ messages in thread From: Daniel P. Berrangé @ 2022-07-25 9:13 UTC (permalink / raw) To: Chris Murphy; +Cc: qemu-devel On Fri, Jul 22, 2022 at 04:03:52PM -0400, Chris Murphy wrote: > Is this valid? > > `<disk device="disk" type="file"> > <target dev="vda" bus="virtio"/> > <source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/> > <driver name="qemu" type="raw-xz" discard="unmap"/>` > `/> > </disk>` > > I know type="raw" works fine, I'm wondering if there'd be any problem > with type "raw-xz" combined with discards? This is libvirt configuration, so libvirt-users@redhat.com is the better list in general. That said, what is this 'raw-xz' type you refer to ? AFAIK, that is not a disk driver type that exists in either libvirt or QEMU releases. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: driver type raw-xz supports discard=unmap? 2022-07-25 9:13 ` Daniel P. Berrangé @ 2022-07-25 12:51 ` Chris Murphy 2022-07-25 13:53 ` Daniel P. Berrangé 0 siblings, 1 reply; 5+ messages in thread From: Chris Murphy @ 2022-07-25 12:51 UTC (permalink / raw) To: qemu-devel On Mon, Jul 25, 2022, at 5:13 AM, Daniel P. Berrangé wrote: > On Fri, Jul 22, 2022 at 04:03:52PM -0400, Chris Murphy wrote: >> Is this valid? >> >> `<disk device="disk" type="file"> >> <target dev="vda" bus="virtio"/> >> <source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/> >> <driver name="qemu" type="raw-xz" discard="unmap"/>` >> `/> >> </disk>` >> >> I know type="raw" works fine, I'm wondering if there'd be any problem >> with type "raw-xz" combined with discards? > > This is libvirt configuration, so libvirt-users@redhat.com is the better > list in general. That said, what is this 'raw-xz' type you refer to ? > > AFAIK, that is not a disk driver type that exists in either libvirt or > QEMU releases. Huh, interesting. I have no idea then. I just happened to notice it in the (libvirt) XML config that's used by oz. https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation/Rawhide/20220721.n.0/images/libvirt-raw-xz-aarch64.xml When manually modifying a virt-manager created config, to change "raw" to "raw-xz" I get an error: # virsh edit uefivm error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Extra element devices in interleave Element domain failed to validate content Failed. Try again? [y,n,i,f,?]: I've got no idea what happens if an invalid type is specified in the config. The VM's are definitely running despite this. I'll ask oz devs. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: driver type raw-xz supports discard=unmap? 2022-07-25 12:51 ` Chris Murphy @ 2022-07-25 13:53 ` Daniel P. Berrangé 2022-07-25 15:37 ` Chris Murphy 0 siblings, 1 reply; 5+ messages in thread From: Daniel P. Berrangé @ 2022-07-25 13:53 UTC (permalink / raw) To: Chris Murphy; +Cc: qemu-devel On Mon, Jul 25, 2022 at 08:51:42AM -0400, Chris Murphy wrote: > > > On Mon, Jul 25, 2022, at 5:13 AM, Daniel P. Berrangé wrote: > > On Fri, Jul 22, 2022 at 04:03:52PM -0400, Chris Murphy wrote: > >> Is this valid? > >> > >> `<disk device="disk" type="file"> > >> <target dev="vda" bus="virtio"/> > >> <source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/> > >> <driver name="qemu" type="raw-xz" discard="unmap"/>` > >> `/> > >> </disk>` > >> > >> I know type="raw" works fine, I'm wondering if there'd be any problem > >> with type "raw-xz" combined with discards? > > > > This is libvirt configuration, so libvirt-users@redhat.com is the better > > list in general. That said, what is this 'raw-xz' type you refer to ? > > > > AFAIK, that is not a disk driver type that exists in either libvirt or > > QEMU releases. > > Huh, interesting. I have no idea then. I just happened to notice it in the (libvirt) XML config that's used by oz. > https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation/Rawhide/20220721.n.0/images/libvirt-raw-xz-aarch64.xml I don't see 'raw-xz' mentioned anywhere in the Oz code at https://github.com/clalancette/oz was it a fork that's being used ? > I've got no idea what happens if an invalid type is specified in > the config. The VM's are definitely running despite this. I'll ask > oz devs. This is pretty surprising if they're actually running as it should cause a fatal error message error: unsupported configuration: unknown driver format value 'raw-xz' With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: driver type raw-xz supports discard=unmap? 2022-07-25 13:53 ` Daniel P. Berrangé @ 2022-07-25 15:37 ` Chris Murphy 0 siblings, 0 replies; 5+ messages in thread From: Chris Murphy @ 2022-07-25 15:37 UTC (permalink / raw) To: qemu-devel On Mon, Jul 25, 2022, at 9:53 AM, Daniel P. Berrangé wrote: > On Mon, Jul 25, 2022 at 08:51:42AM -0400, Chris Murphy wrote: >> Huh, interesting. I have no idea then. I just happened to notice it in the (libvirt) XML config that's used by oz. >> https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation/Rawhide/20220721.n.0/images/libvirt-raw-xz-aarch64.xml > > I don't see 'raw-xz' mentioned anywhere in the Oz code at > > https://github.com/clalancette/oz > > was it a fork that's being used ? Must be. I'm not seeing it in either oz or imagefactory source either. >> I've got no idea what happens if an invalid type is specified in >> the config. The VM's are definitely running despite this. I'll ask >> oz devs. > > This is pretty surprising if they're actually running as it should > cause a fatal error message > > error: unsupported configuration: unknown driver format value 'raw-xz' Yep, I'm lost. I guess it's down a rabbit hole or yak shaving time. -- Chris Murphy ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-25 15:39 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-07-22 20:03 driver type raw-xz supports discard=unmap? Chris Murphy 2022-07-25 9:13 ` Daniel P. Berrangé 2022-07-25 12:51 ` Chris Murphy 2022-07-25 13:53 ` Daniel P. Berrangé 2022-07-25 15:37 ` Chris Murphy
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.