All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] Re: Transparent compress in virtio
       [not found]       ` <MN2PR06MB6030237A3D6C56DB9369FF2A89AD0@MN2PR06MB6030.namprd06.prod.outlook.com>
@ 2020-04-29  2:00         ` keens keens
  2020-04-29  9:20           ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: keens keens @ 2020-04-29  2:00 UTC (permalink / raw
  To: virtio-dev@lists.oasis-open.org

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

Hello virtio-dev team,

I want to compress all the data or files when the apps in VMs writes to a pass-through block device via kvm virtio.
And decompress the data when the apps in VMs trying to read the data from the pass-through block device on host.

My idea is to add a data transform layer into virtio architecture for the purpose of transparent compress.
I am reading the virtio.c, virtio_ring.c code, but have not found the place where I can do the data compress.
Is it feasible that we can add a filter into the virtio, and there is a chance to do data compress or encrypt in the filter?

Thanks
Keen

[-- Attachment #2: Type: text/html, Size: 1450 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [virtio-dev] Re: Transparent compress in virtio
  2020-04-29  2:00         ` [virtio-dev] Re: Transparent compress in virtio keens keens
@ 2020-04-29  9:20           ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2020-04-29  9:20 UTC (permalink / raw
  To: keens keens; +Cc: virtio-dev@lists.oasis-open.org

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

On Wed, Apr 29, 2020 at 02:00:39AM +0000, keens keens wrote:
> I want to compress all the data or files when the apps in VMs writes to a pass-through block device via kvm virtio.
> And decompress the data when the apps in VMs trying to read the data from the pass-through block device on host.
> 
> My idea is to add a data transform layer into virtio architecture for the purpose of transparent compress.
> I am reading the virtio.c, virtio_ring.c code, but have not found the place where I can do the data compress.
> Is it feasible that we can add a filter into the virtio, and there is a chance to do data compress or encrypt in the filter?

Can you use existing volume-level compression features instead of
reimplementing compression in virtio-specific code?

For example, the VDO device-mapper target is available for Linux:
https://github.com/dm-vdo/kvdo
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deduplicating_and_compressing_storage/deploying-vdo_deduplicating-and-compressing-storage

If not, can you explain your use case in more detail?

Thanks,
Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-29  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <MN2PR06MB60303B243BCA31472FD8A4C189AC0@MN2PR06MB6030.namprd06.prod.outlook.com>
     [not found] ` <MN2PR06MB60301F725442727DCDDFCEBD89AC0@MN2PR06MB6030.namprd06.prod.outlook.com>
     [not found]   ` <MN2PR06MB6030882BFE3EC7A8D332C44789AC0@MN2PR06MB6030.namprd06.prod.outlook.com>
     [not found]     ` <20200428100215-mutt-send-email-mst@kernel.org>
     [not found]       ` <MN2PR06MB6030237A3D6C56DB9369FF2A89AD0@MN2PR06MB6030.namprd06.prod.outlook.com>
2020-04-29  2:00         ` [virtio-dev] Re: Transparent compress in virtio keens keens
2020-04-29  9:20           ` Stefan Hajnoczi

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.