search for: virtio_id_balloon

Displaying 20 results from an estimated 38 matches for "virtio_id_balloon".

2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...struct VirtIOBalloon +{ + VirtIODevice vdev; +} VirtIOBalloon; + +struct virtio_balloon_hdr +{ + uint8_t cmd; + uint8_t status; +}; + +struct virtio_balloon_config +{ + uint32_t target_nrpages; +}; + +VirtIOBalloon *virtio_balloon; + +extern int64_t ram_size; +int64_t target_ramsize; + +#define VIRTIO_ID_BALLOON 3 + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static VirtIOBalloon *to_virtio_balloon(VirtIODevice *vdev) +{ + return (VirtIOBalloon *)vdev; +} + +static void virtio_balloon_queue(VirtIODevice *vdev, VirtQueue *vq) +{ + VirtIOBalloon *n = to_virtio_balloon(vdev); + VirtQu...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...struct VirtIOBalloon +{ + VirtIODevice vdev; +} VirtIOBalloon; + +struct virtio_balloon_hdr +{ + uint8_t cmd; + uint8_t status; +}; + +struct virtio_balloon_config +{ + uint32_t target_nrpages; +}; + +VirtIOBalloon *virtio_balloon; + +extern int64_t ram_size; +int64_t target_ramsize; + +#define VIRTIO_ID_BALLOON 3 + +#define CMD_BALLOON_INFLATE 0x1 +#define CMD_BALLOON_DEFLATE 0x2 + +static VirtIOBalloon *to_virtio_balloon(VirtIODevice *vdev) +{ + return (VirtIOBalloon *)vdev; +} + +static void virtio_balloon_queue(VirtIODevice *vdev, VirtQueue *vq) +{ + VirtIOBalloon *n = to_virtio_balloon(vdev); + VirtQu...
2015 Apr 01
1
[PATCH v3 2/6] virtio: balloon might not be a legacy device
...iff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); -- MST
2020 Sep 14
0
[PATCH 1/3] virtio-balloon: Constify id_table
...rtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -128,7 +128,7 @@ struct virtio_balloon { > struct page_reporting_dev_info pr_dev_info; > }; > > -static struct virtio_device_id id_table[] = { > +static const struct virtio_device_id id_table[] = { > { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID }, > { 0 }, > }; > Acked-by: David Hildenbrand <david at redhat.com> -- Thanks, David / dhildenb
2015 Apr 01
1
[PATCH v3 2/6] virtio: balloon might not be a legacy device
...iff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); -- MST
2014 Dec 08
0
[PATCH v3 1/6] virtio: add API to detect legacy devices
...<uapi/linux/virtio_ids.h> /* Unique numbering for virtio devices. */ static DEFINE_IDA(virtio_index_ida); @@ -267,6 +268,12 @@ static struct bus_type virtio_bus = { .remove = virtio_dev_remove, }; +bool virtio_device_is_legacy_only(struct virtio_device_id id) +{ + return id.device == VIRTIO_ID_BALLOON; +} +EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); + int register_virtio_driver(struct virtio_driver *driver) { /* Catch this early. */ -- MST
2015 Mar 31
0
[PATCH v2 2/6] virtio: balloon might not be a legacy device
...iff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); -- MST
2015 Mar 31
0
[PATCH v2 2/6] virtio: balloon might not be a legacy device
...iff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 5ce2aa4..5fa67b5 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -280,7 +280,7 @@ static struct bus_type virtio_bus = { bool virtio_device_is_legacy_only(struct virtio_device_id id) { - return id.device == VIRTIO_ID_BALLOON; + return false; } EXPORT_SYMBOL_GPL(virtio_device_is_legacy_only); -- MST
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...if (!work) + continue; + INIT_LIST_HEAD(&work->list); + work->buf = buf; + + list_add(&work->list, &v->balloon_work); + } + spin_unlock(&v->queue_lock); + wake_up(&v->balloon_wait); + + return true; +} + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID}, + { 0 }, +}; + +static LIST_HEAD(balloon_devices); + +static int balloon_probe(struct virtio_device *vdev) +{ + int err = -EINVAL; + struct virtballoon *v; + + v = kzalloc(GFP_KERNEL, sizeof(struct virtballoon)); + if (!v) + return -ENOMEM; + + v->vq = vdev->config->f...
2008 Jan 14
6
[PATCH] KVM virtio balloon driver
...if (!work) + continue; + INIT_LIST_HEAD(&work->list); + work->buf = buf; + + list_add(&work->list, &v->balloon_work); + } + spin_unlock(&v->queue_lock); + wake_up(&v->balloon_wait); + + return true; +} + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID}, + { 0 }, +}; + +static LIST_HEAD(balloon_devices); + +static int balloon_probe(struct virtio_device *vdev) +{ + int err = -EINVAL; + struct virtballoon *v; + + v = kzalloc(GFP_KERNEL, sizeof(struct virtballoon)); + if (!v) + return -ENOMEM; + + v->vq = vdev->config->f...
2010 Jan 08
2
Virtio ballooning support for Lguest
Hi, I am doing working on enabling Transcendent Memory(OLS '09) support on lguest. For the same, I need ballooning support for lguest. Is there an implmentation of Virtio Balloon driver, that I can use for my purpose? Could someone give me an insight, as to how to go about, for implementing this myself, incase I dont find this patch... Thankyou. -- Gaurav Kukreja +91 997 030 1257
2010 Jan 08
2
Virtio ballooning support for Lguest
Hi, I am doing working on enabling Transcendent Memory(OLS '09) support on lguest. For the same, I need ballooning support for lguest. Is there an implmentation of Virtio Balloon driver, that I can use for my purpose? Could someone give me an insight, as to how to go about, for implementing this myself, incase I dont find this patch... Thankyou. -- Gaurav Kukreja +91 997 030 1257
2012 May 28
6
[PATCH 0/5] virtio: rng: fixes
Hi Rusty, These are a few fixes for the virtio-rng driver. These were tested using the not-yet-upstream virtio-rng device patch to qemu: http://thread.gmane.org/gmane.comp.emulators.qemu/152668 Please apply. Amit Shah (5): virtio ids: fix comment for virtio-rng virtio: rng: allow tasks to be killed that are waiting for rng input virtio: rng: don't wait on host when module is going
2012 May 28
6
[PATCH 0/5] virtio: rng: fixes
Hi Rusty, These are a few fixes for the virtio-rng driver. These were tested using the not-yet-upstream virtio-rng device patch to qemu: http://thread.gmane.org/gmane.comp.emulators.qemu/152668 Please apply. Amit Shah (5): virtio ids: fix comment for virtio-rng virtio: rng: allow tasks to be killed that are waiting for rng input virtio: rng: don't wait on host when module is going
2014 Dec 04
5
[PATCH RFC 1/3] virtio: add API to detect legacy devices
.../drivers/virtio/virtio.c index fa6b75d..6b4c1113 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -267,6 +267,12 @@ static struct bus_type virtio_bus = { .remove = virtio_dev_remove, }; +bool virtio_device_is_legacy_only(struct virtio_device_id id) +{ + return id.device == VIRTIO_ID_BALLOON; +} +EXPORT_SYMBOL_GPL(register_virtio_driver); + int register_virtio_driver(struct virtio_driver *driver) { /* Catch this early. */ -- MST
2014 Dec 04
5
[PATCH RFC 1/3] virtio: add API to detect legacy devices
.../drivers/virtio/virtio.c index fa6b75d..6b4c1113 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -267,6 +267,12 @@ static struct bus_type virtio_bus = { .remove = virtio_dev_remove, }; +bool virtio_device_is_legacy_only(struct virtio_device_id id) +{ + return id.device == VIRTIO_ID_BALLOON; +} +EXPORT_SYMBOL_GPL(register_virtio_driver); + int register_virtio_driver(struct virtio_driver *driver) { /* Catch this early. */ -- MST
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...et_nrpages = %d, vb->target_nrpages = %d\n", + __func__, target_nrpages, vb->target_nrpages); + + if (target_nrpages != vb->target_nrpages) { + vb->target_nrpages = target_nrpages; + wake_up(&vb->balloon_wait); + return IRQ_HANDLED; + } + + return IRQ_NONE; +} + +#define VIRTIO_ID_BALLOON 3 + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID}, + { 0 }, +}; + +static int balloon_probe(struct virtio_device *vdev) +{ + struct virtio_pci_device *pvdev = to_vp_device(vdev); + int err = -EBUSY; + + if (virtballoon.dev) { + printk("kvm_ballon: e...
2008 Jan 08
1
[PATCH] kvm guest balloon driver
...et_nrpages = %d, vb->target_nrpages = %d\n", + __func__, target_nrpages, vb->target_nrpages); + + if (target_nrpages != vb->target_nrpages) { + vb->target_nrpages = target_nrpages; + wake_up(&vb->balloon_wait); + return IRQ_HANDLED; + } + + return IRQ_NONE; +} + +#define VIRTIO_ID_BALLOON 3 + +static struct virtio_device_id id_table[] = { + { VIRTIO_ID_BALLOON, VIRTIO_DEV_ANY_ID}, + { 0 }, +}; + +static int balloon_probe(struct virtio_device *vdev) +{ + struct virtio_pci_device *pvdev = to_vp_device(vdev); + int err = -EBUSY; + + if (virtballoon.dev) { + printk("kvm_ballon: e...
2015 Mar 30
10
[PATCH 0/6] virtio_balloon: virtio 1 support
Virtio 1.0 doesn't include a modern balloon device. At some point we'll likely define an incompatible interface with a different ID. But for now, it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. The only issue is with the stats buffer, which has misaligned fields. Seems easy to fix by prepending a 6
2015 Mar 30
10
[PATCH 0/6] virtio_balloon: virtio 1 support
Virtio 1.0 doesn't include a modern balloon device. At some point we'll likely define an incompatible interface with a different ID. But for now, it's not a big change to support a transitional balloon device: this has the advantage of supporting existing drivers, transparently. The only issue is with the stats buffer, which has misaligned fields. Seems easy to fix by prepending a 6