Displaying 20 results from an estimated 32 matches for "config_data".
2012 Apr 03
3
[PATCH] xl: Don't require a config file for cpupools
...char extra_config[1024];
int opt;
@@ -5471,23 +5471,26 @@ int main_cpupoolcreate(int argc, char **
optind++;
}
- if (!filename) {
- help("cpupool-create");
- return -ERROR_FAIL;
- }
-
- if (libxl_read_file_contents(ctx, filename, (void **)&config_data, &config_len)) {
- fprintf(stderr, "Failed to read config file: %s: %s\n",
- filename, strerror(errno));
- return -ERROR_FAIL;
- }
+ if (filename)
+ {
+ if (libxl_read_file_contents(ctx, filename, (void **)&config_data,
+...
2012 May 15
6
[PATCH 0 of 2 v2] Add vncviewer xm compatibility options
Changes since v1:
- Removed libxl vncviewer related dependencies
- The vncviewer function was modified to accept a domid instead of domspec;
- main_vncviewer was updated to reflect the new use.
- A domain_create structure is now passed to the parse_config_data where required/feasible (NULL otherwise)
- xl restore now have long options for vncviewer/vncviewer-autopass; docs updated.
- Updated vnc logic to depend on create_domain
tools/libxl/xl_cmdimpl.c | 50 ++++++++++++++++---------------
docs/man/xl.cfg.pod.5 | 4 ++
docs/man/xl.pod.1...
2013 Jan 31
7
[PATCH] libxl: pass debug flag down to libxl_domain_suspend
...const char *rune,
+static void migrate_domain(uint32_t domid, const char *rune, int debug,
const char *override_config_file)
{
pid_t child = -1;
@@ -3340,7 +3340,7 @@ static void migrate_domain(uint32_t domi
char *away_domname;
char rc_buf;
uint8_t *config_data;
- int config_len;
+ int config_len, flags = LIBXL_SUSPEND_LIVE;
save_domain_core_begin(domid, override_config_file,
&config_data, &config_len);
@@ -3358,7 +3358,9 @@ static void migrate_domain(uint32_t domi
xtl_stdiostream_adjust_flags(logger...
2014 Dec 22
2
3.19.0-rc1 nouvea build failure on GeForce GT 610 only
CHK kernel/config_data.h
CC [M] drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.o
drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c: In function
‘nvd0_dmaobj_bind’:
drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c:54:8: error:
‘GM204_DISP_CORE_CHANNEL_DMA’ undeclared (first use in this function)
case GM204_DIS...
2020 May 13
0
[RFC v3 for QEMU] virtio-balloon: Add option cont-pages to set VIRTIO_BALLOON_VQ_INFLATE_CONT
..._config, current_pages_order);
> + }
> if (virtio_has_feature(features, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) {
> return offsetof(struct virtio_balloon_config, poison_val);
> }
> @@ -646,6 +658,11 @@ static void virtio_balloon_get_config(VirtIODevice *vdev, uint8_t *config_data)
> cpu_to_le32(VIRTIO_BALLOON_CMD_ID_DONE);
> }
>
> + if (virtio_has_feature(dev->host_features, VIRTIO_BALLOON_F_CONT_PAGES)) {
> + config.max_pages_order = cpu_to_le32(CONT_PAGES_ORDER);
> + config.current_pages_order = cpu_to_l...
2014 Dec 22
1
3.19.0-rc1 nouvea build failure on GeForce GT 610 only
On Mon, 2014-12-22 at 14:37 +0100, Paul Bolle wrote:
> On Mon, 2014-12-22 at 13:01 +0000, Sid Boyce wrote:
> > CHK kernel/config_data.h
> > CC [M] drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.o
> > drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c: In function
> > ‘nvd0_dmaobj_bind’:
> > drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c:54:8: error:
> > ‘GM204_DISP_CORE_CHANNEL_DMA’ undeclar...
2016 Jul 27
0
[PATCH 6/7] qemu: Implement virtio-pstore device
...s->vq[1] = virtio_add_queue(vdev, 128, virtio_pstore_handle_io);
+}
+
+static void virtio_pstore_device_unrealize(DeviceState *dev, Error **errp)
+{
+ VirtIODevice *vdev = VIRTIO_DEVICE(dev);
+
+ virtio_cleanup(vdev);
+}
+
+static void virtio_pstore_get_config(VirtIODevice *vdev, uint8_t *config_data)
+{
+ VirtIOPstore *dev = VIRTIO_PSTORE(vdev);
+ struct virtio_pstore_config config;
+
+ config.bufsize = cpu_to_le32(dev->bufsize);
+ if (dev->console) {
+ config.flags |= cpu_to_le32(VIRTIO_PSTORE_CONFIG_FL_CONSOLE);
+ }
+
+ memcpy(config_data, &config, sizeof(s...
2016 Aug 20
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...s->wvq = virtio_add_queue(vdev, 128, virtio_pstore_handle_io);
+}
+
+static void virtio_pstore_device_unrealize(DeviceState *dev, Error **errp)
+{
+ VirtIODevice *vdev = VIRTIO_DEVICE(dev);
+
+ virtio_cleanup(vdev);
+}
+
+static void virtio_pstore_get_config(VirtIODevice *vdev, uint8_t *config_data)
+{
+ VirtIOPstore *dev = VIRTIO_PSTORE(vdev);
+ struct virtio_pstore_config config;
+
+ config.bufsize = cpu_to_le32(dev->bufsize);
+
+ memcpy(config_data, &config, sizeof(struct virtio_pstore_config));
+}
+
+static void virtio_pstore_set_config(VirtIODevice *vdev,
+...
2011 Apr 18
7
[PATCH] tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground
...cmdimpl.c Mon Apr 18 17:23:51 2011 +0100
@@ -1354,7 +1354,7 @@ static int create_domain(struct domain_c
int migrate_fd = dom_info->migrate_fd;
int fd, i;
- int need_daemon = 1;
+ int need_daemon = daemonize;
int ret, rc;
libxl_waiter *w1 = NULL, *w2 = NULL;
void *config_data = 0;
@@ -1537,7 +1537,7 @@ start:
libxl_domain_unpause(ctx, domid);
ret = domid; /* caller gets success in parent */
- if (!daemonize)
+ if (!daemonize && !debug)
goto out;
if (need_daemon) {
_______________________________________________
Xen-devel ma...
2016 Nov 10
0
[PATCH 2/3] qemu: Implement virtio-pstore device
...ce_unrealize(DeviceState *dev, Error **errp)
> > > +{
> > > + VirtIODevice *vdev = VIRTIO_DEVICE(dev);
> > > +
> > > + virtio_cleanup(vdev);
> > > +}
> > > +
> > > +static void virtio_pstore_get_config(VirtIODevice *vdev, uint8_t *config_data)
> > > +{
> > > + VirtIOPstore *dev = VIRTIO_PSTORE(vdev);
> > > + struct virtio_pstore_config config;
> >
> > Add {} here - you want all fields initialized
> > if you add them, to avoid leaking them to guest.
>
> Ok.
>
> >
>...
2014 Dec 22
0
3.19.0-rc1 nouvea build failure on GeForce GT 610 only
Hi Sid,
On Mon, 2014-12-22 at 13:01 +0000, Sid Boyce wrote:
> CHK kernel/config_data.h
> CC [M] drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.o
> drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c: In function
> ‘nvd0_dmaobj_bind’:
> drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c:54:8: error:
> ‘GM204_DISP_CORE_CHANNEL_DMA’ undeclared (first use in this fun...
2016 Jul 28
3
[PATCH 6/7] qemu: Implement virtio-pstore device
...pstore_handle_io);
> +}
> +
> +static void virtio_pstore_device_unrealize(DeviceState *dev, Error **errp)
> +{
> + VirtIODevice *vdev = VIRTIO_DEVICE(dev);
> +
> + virtio_cleanup(vdev);
> +}
> +
> +static void virtio_pstore_get_config(VirtIODevice *vdev, uint8_t *config_data)
> +{
> + VirtIOPstore *dev = VIRTIO_PSTORE(vdev);
> + struct virtio_pstore_config config;
> +
> + config.bufsize = cpu_to_le32(dev->bufsize);
> + if (dev->console) {
> + config.flags |= cpu_to_le32(VIRTIO_PSTORE_CONFIG_FL_CONSOLE);
> + }
> +
&...
2016 Jul 28
3
[PATCH 6/7] qemu: Implement virtio-pstore device
...pstore_handle_io);
> +}
> +
> +static void virtio_pstore_device_unrealize(DeviceState *dev, Error **errp)
> +{
> + VirtIODevice *vdev = VIRTIO_DEVICE(dev);
> +
> + virtio_cleanup(vdev);
> +}
> +
> +static void virtio_pstore_get_config(VirtIODevice *vdev, uint8_t *config_data)
> +{
> + VirtIOPstore *dev = VIRTIO_PSTORE(vdev);
> + struct virtio_pstore_config config;
> +
> + config.bufsize = cpu_to_le32(dev->bufsize);
> + if (dev->console) {
> + config.flags |= cpu_to_le32(VIRTIO_PSTORE_CONFIG_FL_CONSOLE);
> + }
> +
&...
2014 Dec 22
0
3.19.0-rc1 nouvea build failure on GeForce GT 610 only
On 22/12/14 13:54, Paul Bolle wrote:
> On Mon, 2014-12-22 at 14:37 +0100, Paul Bolle wrote:
>> On Mon, 2014-12-22 at 13:01 +0000, Sid Boyce wrote:
>>> CHK kernel/config_data.h
>>> CC [M] drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.o
>>> drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c: In function
>>> ‘nvd0_dmaobj_bind’:
>>> drivers/gpu/drm/nouveau/core/engine/dmaobj/nvd0.c:54:8: error:
>>> ‘GM204_DISP_CORE_C...
2020 Mar 12
0
[RFC for QEMU] virtio-balloon: Add option thp-order to set VIRTIO_BALLOON_F_THP_ORDER
...handle_size -= BALLOON_PAGE_SIZE;
> }
> - memory_region_unref(section.mr);
> }
>
> virtqueue_push(vq, elem, offset);
> @@ -693,6 +705,8 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
>
> memcpy(&config, config_data, virtio_balloon_config_size(dev));
> dev->actual = le32_to_cpu(config.actual);
> + if (virtio_has_feature(vdev->host_features, VIRTIO_BALLOON_F_THP_ORDER))
> + dev->actual <<= VIRTIO_BALLOON_THP_ORDER;
> if (dev->actual != oldactual) {
>...
2009 Aug 25
3
Extending virtio_console to support multiple ports
Hello all,
Here is a new iteration of the patch series that implements a
transport for guest and host communications.
The code has been updated to reuse the virtio-console device instead
of creating a new virtio-serial device.
I've tested for compatibility (old qemu & new kernel, new qemu & old
kernel, new qemu & new kernel) and it all works fine.
There are a few items on my
2009 Aug 25
3
Extending virtio_console to support multiple ports
Hello all,
Here is a new iteration of the patch series that implements a
transport for guest and host communications.
The code has been updated to reuse the virtio-console device instead
of creating a new virtio-serial device.
I've tested for compatibility (old qemu & new kernel, new qemu & old
kernel, new qemu & new kernel) and it all works fine.
There are a few items on my
2016 Mar 03
0
[RFC qemu 2/4] virtio-balloon: Add a new feature to balloon device
...gt; + iov_to_buf(elem->out_sg, elem->out_num, offset,
> + s->free_pages_bitmap, bitmap_bytes);
> + s->req_status = DONE;
> + s->free_pages_count = free_pages_count;
> +}
> +
> static void virtio_balloon_get_config(VirtIODevice *vdev, uint8_t *config_data)
> {
> VirtIOBalloon *dev = VIRTIO_BALLOON(vdev);
> @@ -362,6 +399,7 @@ static uint64_t virtio_balloon_get_features(VirtIODevice *vdev, uint64_t f,
> VirtIOBalloon *dev = VIRTIO_BALLOON(vdev);
> f |= dev->host_features;
> virtio_add_feature(&f, VIRTIO_B...
2016 Jul 27
11
[RFC/PATCHSET 0/7] virtio: Implement virtio pstore device (v2)
Hello,
This is v2 of the virtio-pstore work. In this patchset I addressed
most of feedbacks from previous version. Limiting disk size is not
implemented yet.
* changes in v2)
- update VIRTIO_ID_PSTORE to 22 (Cornelia, Stefan)
- make buffer size configurable (Cornelia)
- support PSTORE_TYPE_CONSOLE (Kees)
- use separate virtqueues for read and write
- support concurrent async
2016 Jul 27
11
[RFC/PATCHSET 0/7] virtio: Implement virtio pstore device (v2)
Hello,
This is v2 of the virtio-pstore work. In this patchset I addressed
most of feedbacks from previous version. Limiting disk size is not
implemented yet.
* changes in v2)
- update VIRTIO_ID_PSTORE to 22 (Cornelia, Stefan)
- make buffer size configurable (Cornelia)
- support PSTORE_TYPE_CONSOLE (Kees)
- use separate virtqueues for read and write
- support concurrent async