Displaying 7 results from an estimated 7 matches for "init_sg".
Did you mean:
init_s
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...P_KERNEL);
+ if (!iov)
+ return -ENOMEM;
+
+ if (copy_from_user(iov, uiov, uiov_sz))
+ goto out;
+
+ for (i = 0; i < kiov_num; i++)
+ if (copy_to_user(iov[i].iov_base, kiov[i].iov_base,
+ iov[i].iov_len))
+ goto out;
+
+ return 0;
+
+out:
+ kfree(iov);
+ return -EFAULT;
+}
+
+static int init_sg(struct sg_table *sg, struct kvec *kiov, u32 kiov_sz)
+{
+ int err;
+ u32 i;
+ struct scatterlist *sgl;
+
+ err = sg_alloc_table(sg, kiov_sz, GFP_KERNEL);
+ if (err)
+ return err;
+
+ sg_init_table(sg->sgl, kiov_sz);
+
+ for_each_sg(sg->sgl, sgl, kiov_sz, i)
+ sg_set_buf(sgl, kiov[i].iov_...
2009 Jun 19
2
[PATCH/RFC] virtio_test: A module for testing virtio via userspace
...P_KERNEL);
+ if (!iov)
+ return -ENOMEM;
+
+ if (copy_from_user(iov, uiov, uiov_sz))
+ goto out;
+
+ for (i = 0; i < kiov_num; i++)
+ if (copy_to_user(iov[i].iov_base, kiov[i].iov_base,
+ iov[i].iov_len))
+ goto out;
+
+ return 0;
+
+out:
+ kfree(iov);
+ return -EFAULT;
+}
+
+static int init_sg(struct sg_table *sg, struct kvec *kiov, u32 kiov_sz)
+{
+ int err;
+ u32 i;
+ struct scatterlist *sgl;
+
+ err = sg_alloc_table(sg, kiov_sz, GFP_KERNEL);
+ if (err)
+ return err;
+
+ sg_init_table(sg->sgl, kiov_sz);
+
+ for_each_sg(sg->sgl, sgl, kiov_sz, i)
+ sg_set_buf(sgl, kiov[i].iov_...
2011 Jun 13
5
3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU
Hi,
another issue I''m seeing with 3.0-rc2 and Xen is that there is an
unexpectedly high amount of kernel reserved memory.
I suspect that Linux allocates page table entries and corresponding
data structures for the whole 6GB areas of the provided ''physical
RAM map'' even though it has rather big unusable holes in it.
[ 0.000000] BIOS-provided physical RAM map:
[
2010 Dec 16
19
Hypervisor hangs on startup
Hi!
We have a problem that the dom0 very often does not boot and hangs in
the hypervisor - see screenshot. The last message is:
(XEN) Dom0 has maximum 16 VCPUs
(afterwards xen should overwrite the memory)
We are using the xen kernel from kernel.org git.
Kernel is 2.6.32.24-xen with Xen 4.0.1
Hardware is HP DL380.
Is this a known problem? Any hints what could be the problem and how we
can
2010 Dec 16
19
Hypervisor hangs on startup
Hi!
We have a problem that the dom0 very often does not boot and hangs in
the hypervisor - see screenshot. The last message is:
(XEN) Dom0 has maximum 16 VCPUs
(afterwards xen should overwrite the memory)
We are using the xen kernel from kernel.org git.
Kernel is 2.6.32.24-xen with Xen 4.0.1
Hardware is HP DL380.
Is this a known problem? Any hints what could be the problem and how we
can
2016 Mar 22
19
[PATCH v3 0/11] tests/qemu: Add program for tracing and analyzing boot times.
Lots of changes since v2, too much to remember or summarize.
Please ignore patch 11/11, it's just for my testing.
Rich.
2013 Mar 12
14
vpmu=1 and running 'perf top' within a PVHVM guest eventually hangs dom0 and hypervisor has stuck vCPUS. Romley-EP (model=45, stepping=2)
...[ 30.677614] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 30.677784] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 30.678682] sr 3:0:0:0: Attached scsi CD-ROM sr0
[ 30.679037] initcall init_sr+0x0/0x1000 [sr_mod] returned 0 after 6946 usecs
[ 30.689765] calling init_sg+0x0/0x1000 [sg] @ 4935
[ 30.690616] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 30.691035] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 30.691522] sr 3:0:0:0: Attached scsi generic sg2 type 5
[ 30.691694] initcall init_sg+0x0/0x1000 [sg] returned 0 after 1742 usecs
[ 30.700195] sdb:...