search for: log_size

Displaying 19 results from an estimated 19 matches for "log_size".

2013 Apr 03
1
[PATCH] vhost: Add vhost_commit callback for SeaBIOS ROM region re-mapping
...++ b/hw/vhost.c @@ -385,8 +385,6 @@ static void vhost_set_memory(MemoryListener *listener, bool log_dirty = memory_region_is_logging(section->mr); int s = offsetof(struct vhost_memory, regions) + (dev->mem->nregions + 1) * sizeof dev->mem->regions[0]; - uint64_t log_size; - int r; void *ram; dev->mem = g_realloc(dev->mem, s); @@ -419,12 +417,47 @@ static void vhost_set_memory(MemoryListener *listener, /* Remove old mapping for this memory, if any. */ vhost_dev_unassign_memory(dev, start_addr, size); } + dev->mem_cha...
2013 Apr 03
1
[PATCH] vhost: Add vhost_commit callback for SeaBIOS ROM region re-mapping
...++ b/hw/vhost.c @@ -385,8 +385,6 @@ static void vhost_set_memory(MemoryListener *listener, bool log_dirty = memory_region_is_logging(section->mr); int s = offsetof(struct vhost_memory, regions) + (dev->mem->nregions + 1) * sizeof dev->mem->regions[0]; - uint64_t log_size; - int r; void *ram; dev->mem = g_realloc(dev->mem, s); @@ -419,12 +417,47 @@ static void vhost_set_memory(MemoryListener *listener, /* Remove old mapping for this memory, if any. */ vhost_dev_unassign_memory(dev, start_addr, size); } + dev->mem_cha...
2015 Apr 15
0
[PATCH] vhost: fix log base address
...git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 8dd2f59..02c5604 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1016,10 +1016,13 @@ int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev) } if (hdev->log_enabled) { + uint64_t log_base; + hdev->log_size = vhost_get_log_size(hdev); hdev->log = hdev->log_size ? g_malloc0(hdev->log_size * sizeof *hdev->log) : NULL; - r = hdev->vhost_ops->vhost_call(hdev, VHOST_SET_LOG_BASE, hdev->log); + log_base = (uint64_t)(unsigned long)log_base; + r...
2015 Apr 15
0
[PATCH] vhost: fix log base address
...git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 8dd2f59..02c5604 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1016,10 +1016,13 @@ int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev) } if (hdev->log_enabled) { + uint64_t log_base; + hdev->log_size = vhost_get_log_size(hdev); hdev->log = hdev->log_size ? g_malloc0(hdev->log_size * sizeof *hdev->log) : NULL; - r = hdev->vhost_ops->vhost_call(hdev, VHOST_SET_LOG_BASE, hdev->log); + log_base = (uint64_t)(unsigned long)log_base; + r...
2007 Jan 15
1
Bug#406973: logtail misses lines in rotated file
Package: logtail Version: 1.2.52 Severity: normal Tags: patch Hi, When a logfile is rotated, logtail misses the lines logged between the last logtail run and the logfile rotation. The attached patch allows to set an alternate logfile that logtail tries to use as the old logfile if the inode has changed. It can be used as: logtail -f /var/log/syslog -a /var/log/syslog.1 (Please note that this
2019 Oct 16
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...; > + > + ifcvf_add_status(hw, VIRTIO_CONFIG_S_DRIVER_OK); > + > + return 0; > +} > + > +void ifcvf_stop_hw(struct ifcvf_hw *hw) > +{ > + ifcvf_hw_disable(hw); > + ifcvf_reset(hw); > +} > + > +void ifcvf_enable_logging_vf(struct ifcvf_hw *hw, u64 log_base, u64 log_size) > +{ > + u8 *lm_cfg; > + > + lm_cfg = hw->lm_cfg; > + > + *(u32 *)(lm_cfg + IFCVF_LM_BASE_ADDR_LOW) = > + log_base & IFCVF_32_BIT_MASK; > + > + *(u32 *)(lm_cfg + IFCVF_LM_BASE_ADDR_HIGH) = > + (log_base >> 32) & IFCVF_32_BIT_MASK; > + > + *(u3...
2019 Oct 21
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...;>> +} >>> + >>> +void ifcvf_stop_hw(struct ifcvf_hw *hw) >>> +{ >>> +??? ifcvf_hw_disable(hw); >>> +??? ifcvf_reset(hw); >>> +} >>> + >>> +void ifcvf_enable_logging_vf(struct ifcvf_hw *hw, u64 log_base, u64 >>> log_size) >>> +{ >>> +??? u8 *lm_cfg; >>> + >>> +??? lm_cfg = hw->lm_cfg; >>> + >>> +??? *(u32 *)(lm_cfg + IFCVF_LM_BASE_ADDR_LOW) = >>> +??????? log_base & IFCVF_32_BIT_MASK; >>> + >>> +??? *(u32 *)(lm_cfg + IFCVF_LM_BA...
2008 Mar 31
2
[01/17]PATCH Add API for allocating dynamic TR resouce. V8
Hi Xiantao, I general I think the code in this patch is fine. I have a couple of nit-picking comments: > + if (target_mask&0x1) { The formatting here isn't quite what most of the kernel does. It would be better if you added spaces so it's a little easier to read, ie: if (target_mask & 0x1) { > + p = &__per_cpu_idtrs[cpu][0][0]; > + for (i = IA64_TR_ALLOC_BASE;
2008 Mar 31
2
[01/17]PATCH Add API for allocating dynamic TR resouce. V8
Hi Xiantao, I general I think the code in this patch is fine. I have a couple of nit-picking comments: > + if (target_mask&0x1) { The formatting here isn't quite what most of the kernel does. It would be better if you added spaces so it's a little easier to read, ie: if (target_mask & 0x1) { > + p = &__per_cpu_idtrs[cpu][0][0]; > + for (i = IA64_TR_ALLOC_BASE;
2018 Sep 13
4
bpf compilation using clang
...= BPF_PROG_TYPE_SOCKET_FILTER; attr.insn_cnt = ARRAY_SIZE(l3_l4_hash_insns); attr.insns = (__u64) (unsigned long) (l3_l4_hash_insns); attr.license = (__u64) (unsigned long) ("Dual BSD/GPL"); attr.log_buf = (__u64) (unsigned long) (buffer); attr.log_level = 7; attr.log_size = BUFF_LEN; attr.kern_version = 0; ret = sys_bpf(BPF_PROG_LOAD, &attr, sizeof(attr)); I am not sure how to debug this error since the instructions are in binary and the precompiled source code doesn't seem to contain any weird loops or goto instructions... Is there a way to ident...
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...; > + addr->used_user_addr = (__u64)vq->used; > + addr->log_guest_addr = (__u64)vq->log_addr; > + return 0; > +} > +EXPORT_SYMBOL(vhost_mdev_get_vring_addr); > + > +int vhost_mdev_get_log_base(struct vhost_mdev *vdpa, int queue_id, > + void **log_base, u64 *log_size) > +{ > + // TODO > + return 0; > +} > +EXPORT_SYMBOL(vhost_mdev_get_log_base); > + > +struct mdev_device *vhost_mdev_get_mdev(struct vhost_mdev *vdpa) > +{ > + return vdpa->mdev; > +} > +EXPORT_SYMBOL(vhost_mdev_get_mdev); > + > +void *vhost_mdev_get_priva...
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...; > + addr->used_user_addr = (__u64)vq->used; > + addr->log_guest_addr = (__u64)vq->log_addr; > + return 0; > +} > +EXPORT_SYMBOL(vhost_mdev_get_vring_addr); > + > +int vhost_mdev_get_log_base(struct vhost_mdev *vdpa, int queue_id, > + void **log_base, u64 *log_size) > +{ > + // TODO > + return 0; > +} > +EXPORT_SYMBOL(vhost_mdev_get_log_base); > + > +struct mdev_device *vhost_mdev_get_mdev(struct vhost_mdev *vdpa) > +{ > + return vdpa->mdev; > +} > +EXPORT_SYMBOL(vhost_mdev_get_mdev); > + > +void *vhost_mdev_get_priva...
2020 Jul 16
0
[PATCH vhost next 09/10] vdpa/mlx5: Add shared memory registration code
...llx, end 0x%llx\n", 257 map->start, map->last + 1); 258 err = -ENOMEM; 259 goto err_map; 260 } 261 sg_set_page(sg, pg, sglen, 0); 262 sg = sg_next(sg); 263 if (!sg) 264 goto done; 265 } 266 } 267 done: 268 mr->log_size = log_entity_size; 269 mr->nsg = nsg; 270 ret = dma_map_sg_attrs(dma, mr->sg_head.sgl, mr->nsg, DMA_BIDIRECTIONAL, 0); 271 if (!ret) 272 goto err_map; 273 274 err = create_direct_mr(mvdev, mr); 275 if (err) 276 goto err_direct; 277 278 return 0;...
2019 Sep 03
0
[RFC v3] vhost: introduce mdev based hardware vhost backend
...vring_base(struct vhost_mdev *vdpa, int queue_id, u16 *base); > > +int vhost_mdev_get_vring_addr(struct vhost_mdev *vdpa, int queue_id, > > + struct vhost_vring_addr *addr); > > +int vhost_mdev_get_log_base(struct vhost_mdev *vdpa, int queue_id, > > + void **log_base, u64 *log_size); > > +struct mdev_device *vhost_mdev_get_mdev(struct vhost_mdev *vdpa); > > +void *vhost_mdev_get_private(struct vhost_mdev *vdpa); > > + > > +#endif /* _VHOST_MDEV_H */ > > diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h > > index 8f10748dac7...
2006 Apr 28
0
rq-2.3.2
...-o") --verbosity=verbostiy, -v 0|fatal < 1|error < 2|warn < 3|info < 4|debug - (default info) --log=path, -l set log file - (default stderr) --log_age=log_age daily | weekly | monthly - what age will cause log rolling (default nil) --log_size=log_size size in bytes - what size will cause log rolling (default nil) --help, -h this message --version show version number enjoy. -a -- some people, sweet and attractive, and strong and healthy, happen to die young. they are masters in disguise teaching us...
2006 Jun 08
0
rq-2.3.3
...t of queue --verbosity=verbostiy, -v 0|fatal < 1|error < 2|warn < 3|info < 4|debug - (default info) --log=path, -l set log file - (default stderr) --log_age=log_age daily | weekly | monthly - what age will cause log rolling (default nil) --log_size=log_size size in bytes - what size will cause log rolling (default nil) --help, -h this message --version show version number enjoy. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th...
2019 Jul 03
0
[RFC v2] vhost: introduce mdev based hardware vhost backend
...ev_device *mdev; > + struct mutex ops_lock; > + int nr_vring; > + u64 features; > + u64 state; > + bool pending_reply; > + struct vhost_vfio_op pending; > + const struct vdpa_device_ops *ops; > + void *private; > + int max_vrings; > + uint64_t log_base; > + uint64_t log_size; > + struct vdpa_vring_info vring_info[0]; > +}; > + > +struct vdpa_dev *vdpa_alloc(struct mdev_device *mdev, void *private, > + int max_vrings); > +void vdpa_free(struct vdpa_dev *vdpa); > +ssize_t vdpa_read(struct mdev_device *mdev, char __user *buf, > + size_t co...
2019 Jul 03
4
[RFC v2] vhost: introduce mdev based hardware vhost backend
...size; + u16 base; +}; + +struct vdpa_dev { + struct mdev_device *mdev; + struct mutex ops_lock; + int nr_vring; + u64 features; + u64 state; + bool pending_reply; + struct vhost_vfio_op pending; + const struct vdpa_device_ops *ops; + void *private; + int max_vrings; + uint64_t log_base; + uint64_t log_size; + struct vdpa_vring_info vring_info[0]; +}; + +struct vdpa_dev *vdpa_alloc(struct mdev_device *mdev, void *private, + int max_vrings); +void vdpa_free(struct vdpa_dev *vdpa); +ssize_t vdpa_read(struct mdev_device *mdev, char __user *buf, + size_t count, loff_t *ppos); +ssize_t vdpa_write(...
2019 Jul 03
4
[RFC v2] vhost: introduce mdev based hardware vhost backend
...size; + u16 base; +}; + +struct vdpa_dev { + struct mdev_device *mdev; + struct mutex ops_lock; + int nr_vring; + u64 features; + u64 state; + bool pending_reply; + struct vhost_vfio_op pending; + const struct vdpa_device_ops *ops; + void *private; + int max_vrings; + uint64_t log_base; + uint64_t log_size; + struct vdpa_vring_info vring_info[0]; +}; + +struct vdpa_dev *vdpa_alloc(struct mdev_device *mdev, void *private, + int max_vrings); +void vdpa_free(struct vdpa_dev *vdpa); +ssize_t vdpa_read(struct mdev_device *mdev, char __user *buf, + size_t count, loff_t *ppos); +ssize_t vdpa_write(...