Displaying 8 results from an estimated 8 matches for "st_p".
Did you mean:
st_
2020 May 24
3
[PATCH] file_checksum() optimization
...ughput more than doubles.
---
checksum.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/checksum.c b/checksum.c
index 2e804c47..4aa9f4b7 100644
--- a/checksum.c
+++ b/checksum.c
@@ -294,7 +294,7 @@ void file_checksum(const char *fname, const
STRUCT_STAT *st_p, char *sum)
if (fd == -1)
return;
- buf = map_file(fd, len, MAX_MAP_SIZE, CSUM_CHUNK);
+ buf = map_file(fd, len, MAX_MAP_SIZE, CHUNK_SIZE);
switch (checksum_type) {
case CSUM_MD5: {
@@ -302,8 +302,8 @@ void file_checksum(const char *fname, const
STRUCT_STAT *st_p, char *sum)
MD5_Init(...
2015 Jan 20
2
[PATCH RFC v6 08/20] dataplane: allow virtio-1 devices
..."
> #include "qemu/error-report.h"
> +#include "hw/virtio/virtio-access.h"
> #include "hw/virtio/dataplane/vring.h"
> +#include "hw/virtio/dataplane/vring-accessors.h"
I like your vring-accessors.h approach better than the inline
virtio_ld/st_p() in my patch. Nice.
> @@ -154,15 +157,18 @@ bool vring_should_notify(VirtIODevice *vdev, Vring *vring)
> }
>
>
> -static int get_desc(Vring *vring, VirtQueueElement *elem,
> +static int get_desc(VirtIODevice *vdev, Vring *vring, VirtQueueElement *elem,
>...
2015 Jan 20
2
[PATCH RFC v6 08/20] dataplane: allow virtio-1 devices
..."
> #include "qemu/error-report.h"
> +#include "hw/virtio/virtio-access.h"
> #include "hw/virtio/dataplane/vring.h"
> +#include "hw/virtio/dataplane/vring-accessors.h"
I like your vring-accessors.h approach better than the inline
virtio_ld/st_p() in my patch. Nice.
> @@ -154,15 +157,18 @@ bool vring_should_notify(VirtIODevice *vdev, Vring *vring)
> }
>
>
> -static int get_desc(Vring *vring, VirtQueueElement *elem,
> +static int get_desc(VirtIODevice *vdev, Vring *vring, VirtQueueElement *elem,
>...
2015 Jan 20
0
[PATCH RFC v6 08/20] dataplane: allow virtio-1 devices
...mu/error-report.h"
> > +#include "hw/virtio/virtio-access.h"
> > #include "hw/virtio/dataplane/vring.h"
> > +#include "hw/virtio/dataplane/vring-accessors.h"
>
> I like your vring-accessors.h approach better than the inline
> virtio_ld/st_p() in my patch. Nice.
>
> > @@ -154,15 +157,18 @@ bool vring_should_notify(VirtIODevice *vdev, Vring *vring)
> > }
> >
> >
> > -static int get_desc(Vring *vring, VirtQueueElement *elem,
> > +static int get_desc(VirtIODevice *vdev, Vring *vring, VirtQueue...
2015 Jan 20
0
[PATCH RFC v6 08/20] dataplane: allow virtio-1 devices
...mu/error-report.h"
> > +#include "hw/virtio/virtio-access.h"
> > #include "hw/virtio/dataplane/vring.h"
> > +#include "hw/virtio/dataplane/vring-accessors.h"
>
> I like your vring-accessors.h approach better than the inline
> virtio_ld/st_p() in my patch. Nice.
>
> > @@ -154,15 +157,18 @@ bool vring_should_notify(VirtIODevice *vdev, Vring *vring)
> > }
> >
> >
> > -static int get_desc(Vring *vring, VirtQueueElement *elem,
> > +static int get_desc(VirtIODevice *vdev, Vring *vring, VirtQueue...
2020 Feb 09
2
[RFC PATCH] Add SHA1 support
...gt; 0) {
+ ret = mdlib_update(mdctx, map_ptr(buf, i, remainder),
+ remainder);
+ if (!ret)
+ openssl_failure(__func__);
+ }
+
+ ret = mdlib_finalize(mdctx, sum);
+ if (!ret)
+ openssl_failure(__func__);
+ mdlib_free_ctx(mdctx);
+}
+
void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
{
struct map_struct *buf;
@@ -207,19 +277,9 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
buf = map_file(fd, len, MAX_MAP_SIZE, CSUM_CHUNK);
switch (checksum_type) {
+ case CSUM_SHA1:
case CSUM_MD5:
- md5_begin(&m);
-
- for (i = 0; i +...
2014 Dec 11
45
[PATCH RFC v6 00/20] qemu: towards virtio-1 host support
And yet another iteration of virtio-1 support in qemu, tested with the
latest virtio kernel patches. Find it at
git://github.com/cohuck/qemu virtio-1
Changes from v5:
- fixed stupid bug in "virtio: support more feature bits": we need to
define a proper prop backend for 64 bit wide handling...
- don't negotiate revision 1 unless VERSION_1 is offered
- use 64 bit wide features
2014 Dec 11
45
[PATCH RFC v6 00/20] qemu: towards virtio-1 host support
And yet another iteration of virtio-1 support in qemu, tested with the
latest virtio kernel patches. Find it at
git://github.com/cohuck/qemu virtio-1
Changes from v5:
- fixed stupid bug in "virtio: support more feature bits": we need to
define a proper prop backend for 64 bit wide handling...
- don't negotiate revision 1 unless VERSION_1 is offered
- use 64 bit wide features