1 | The following changes since commit fb68096da3d35e64c88cd610c1fa42766c58e92a: | 1 | The following changes since commit 9c125d17e9402c232c46610802e5931b3639d77b: |
---|---|---|---|
2 | 2 | ||
3 | Revert "tests: use memfd in vhost-user-test" (2018-02-13 09:51:52 +0000) | 3 | Merge tag 'pull-tcg-20220420' of https://gitlab.com/rth7680/qemu into staging (2022-04-20 16:43:11 -0700) |
4 | 4 | ||
5 | are available in the Git repository at: | 5 | are available in the Git repository at: |
6 | 6 | ||
7 | git://github.com/stefanha/qemu.git tags/block-pull-request | 7 | https://gitlab.com/stefanha/qemu.git tags/block-pull-request |
8 | 8 | ||
9 | for you to fetch changes up to 64b01feca991e5b19a5d750ef77cdca92b68bdbb: | 9 | for you to fetch changes up to d45c83328feab2e4083991693160f0a417cfd9b0: |
10 | 10 | ||
11 | misc: fix spelling (2018-02-13 15:38:17 +0000) | 11 | virtiofsd: Add docs/helper for killpriv_v2/no_killpriv_v2 option (2022-04-21 12:05:15 +0200) |
12 | |||
13 | ---------------------------------------------------------------- | ||
14 | Pull request | ||
15 | |||
16 | Small contrib/vhost-user-blk, contrib/vhost-user-scsi, and tools/virtiofsd | ||
17 | improvements. | ||
12 | 18 | ||
13 | ---------------------------------------------------------------- | 19 | ---------------------------------------------------------------- |
14 | 20 | ||
15 | ---------------------------------------------------------------- | 21 | Liu Yiding (1): |
22 | virtiofsd: Add docs/helper for killpriv_v2/no_killpriv_v2 option | ||
16 | 23 | ||
17 | Fam Zheng (2): | 24 | Sakshi Kaushik (1): |
18 | Add a git-publish configuration file | 25 | Implements Backend Program conventions for vhost-user-scsi |
19 | README: Document 'git-publish' workflow | ||
20 | |||
21 | Marc-André Lureau (1): | ||
22 | misc: fix spelling | ||
23 | 26 | ||
24 | Stefan Hajnoczi (1): | 27 | Stefan Hajnoczi (1): |
25 | vl: pause vcpus before stopping iothreads | 28 | contrib/vhost-user-blk: add missing GOptionEntry NULL terminator |
26 | 29 | ||
27 | Wolfgang Bumiller (1): | 30 | docs/tools/virtiofsd.rst | 5 ++ |
28 | ratelimit: don't align wait time with slices | 31 | contrib/vhost-user-blk/vhost-user-blk.c | 3 +- |
29 | 32 | contrib/vhost-user-scsi/vhost-user-scsi.c | 77 +++++++++++++++-------- | |
30 | include/qemu/ratelimit.h | 11 ++++----- | 33 | tools/virtiofsd/helper.c | 3 + |
31 | util/qemu-coroutine-lock.c | 2 +- | 34 | 4 files changed, 62 insertions(+), 26 deletions(-) |
32 | vl.c | 12 ++++++++-- | ||
33 | .gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++ | ||
34 | README | 31 ++++++++++++++++++++++++- | ||
35 | 5 files changed, 104 insertions(+), 10 deletions(-) | ||
36 | create mode 100644 .gitpublish | ||
37 | 35 | ||
38 | -- | 36 | -- |
39 | 2.14.3 | 37 | 2.35.1 |
40 | |||
41 | diff view generated by jsdifflib |
Deleted patch | |||
---|---|---|---|
1 | From: Fam Zheng <famz@redhat.com> | ||
2 | 1 | ||
3 | git-publish [1] is a convenient tool to send patches and has been | ||
4 | popular among QEMU developers. Recently it has been made available in | ||
5 | Fedora official repo thanks to Stefan's work. | ||
6 | |||
7 | One nice feature of the tool is a per-project configuration with | ||
8 | profiles, especially in which the cccmd option is a handy method to | ||
9 | create the Cc list. | ||
10 | |||
11 | [1]: https://github.com/stefanha/git-publish | ||
12 | |||
13 | Signed-off-by: Fam Zheng <famz@redhat.com> | ||
14 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
15 | Message-id: 20180205054725.25634-2-famz@redhat.com | ||
16 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
17 | --- | ||
18 | .gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
19 | 1 file changed, 58 insertions(+) | ||
20 | create mode 100644 .gitpublish | ||
21 | |||
22 | diff --git a/.gitpublish b/.gitpublish | ||
23 | new file mode 100644 | ||
24 | index XXXXXXX..XXXXXXX | ||
25 | --- /dev/null | ||
26 | +++ b/.gitpublish | ||
27 | @@ -XXX,XX +XXX,XX @@ | ||
28 | +# | ||
29 | +# Common git-publish profiles that can be used to send patches to QEMU upstream. | ||
30 | +# | ||
31 | +# See https://github.com/stefanha/git-publish for more information | ||
32 | +# | ||
33 | +[gitpublishprofile "default"] | ||
34 | +base = master | ||
35 | +prefix = PATCH | ||
36 | +to = qemu-devel@nongnu.org | ||
37 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
38 | + | ||
39 | +[gitpublishprofile "rfc"] | ||
40 | +base = master | ||
41 | +prefix = RFC PATCH | ||
42 | +to = qemu-devel@nongnu.org | ||
43 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
44 | + | ||
45 | +[gitpublishprofile "stable"] | ||
46 | +base = master | ||
47 | +prefix = PATCH | ||
48 | +to = qemu-devel@nongnu.org | ||
49 | +cc = qemu-stable@nongnu.org | ||
50 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
51 | + | ||
52 | +[gitpublishprofile "trivial"] | ||
53 | +base = master | ||
54 | +prefix = PATCH | ||
55 | +to = qemu-devel@nongnu.org | ||
56 | +cc = qemu-trivial@nongnu.org | ||
57 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
58 | + | ||
59 | +[gitpublishprofile "block"] | ||
60 | +base = master | ||
61 | +prefix = PATCH | ||
62 | +to = qemu-devel@nongnu.org | ||
63 | +cc = qemu-block@nongnu.org | ||
64 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
65 | + | ||
66 | +[gitpublishprofile "arm"] | ||
67 | +base = master | ||
68 | +prefix = PATCH | ||
69 | +to = qemu-devel@nongnu.org | ||
70 | +cc = qemu-arm@nongnu.org | ||
71 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
72 | + | ||
73 | +[gitpublishprofile "s390"] | ||
74 | +base = master | ||
75 | +prefix = PATCH | ||
76 | +to = qemu-devel@nongnu.org | ||
77 | +cc = qemu-s390@nongnu.org | ||
78 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
79 | + | ||
80 | +[gitpublishprofile "ppc"] | ||
81 | +base = master | ||
82 | +prefix = PATCH | ||
83 | +to = qemu-devel@nongnu.org | ||
84 | +cc = qemu-ppc@nongnu.org | ||
85 | +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null | ||
86 | -- | ||
87 | 2.14.3 | ||
88 | |||
89 | diff view generated by jsdifflib |
1 | From: Fam Zheng <famz@redhat.com> | 1 | From: Sakshi Kaushik <sakshikaushik717@gmail.com> |
---|---|---|---|
2 | 2 | ||
3 | [Fixed s/git-profile/git-publish/ typo and s/for once/the first time/. | 3 | Signed-off-by: Sakshi Kaushik <sakshikaushik717@gmail.com> |
4 | Message-id: 20220406162410.8536-1-sakshikaushik717@gmail.com | ||
5 | |||
6 | [Name the iSCSI URL long option --iscsi-uri instead of --iscsi_uri for | ||
7 | consistency, fix --fd which was rejected due to an outdated | ||
8 | --socket-path check, and add missing entries[] terminator. | ||
4 | --Stefan] | 9 | --Stefan] |
5 | 10 | ||
6 | Signed-off-by: Fam Zheng <famz@redhat.com> | ||
7 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
8 | Message-id: 20180205054725.25634-3-famz@redhat.com | ||
9 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 11 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
10 | --- | 12 | --- |
11 | README | 31 ++++++++++++++++++++++++++++++- | 13 | contrib/vhost-user-scsi/vhost-user-scsi.c | 77 +++++++++++++++-------- |
12 | 1 file changed, 30 insertions(+), 1 deletion(-) | 14 | 1 file changed, 52 insertions(+), 25 deletions(-) |
13 | 15 | ||
14 | diff --git a/README b/README | 16 | diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c |
15 | index XXXXXXX..XXXXXXX 100644 | 17 | index XXXXXXX..XXXXXXX 100644 |
16 | --- a/README | 18 | --- a/contrib/vhost-user-scsi/vhost-user-scsi.c |
17 | +++ b/README | 19 | +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c |
18 | @@ -XXX,XX +XXX,XX @@ The QEMU source code is maintained under the GIT version control system. | 20 | @@ -XXX,XX +XXX,XX @@ fail: |
19 | 21 | ||
20 | git clone git://git.qemu.org/qemu.git | 22 | /** vhost-user-scsi **/ |
21 | 23 | ||
22 | -When submitting patches, the preferred approach is to use 'git | 24 | +static int opt_fdnum = -1; |
23 | +When submitting patches, one common approach is to use 'git | 25 | +static char *opt_socket_path; |
24 | format-patch' and/or 'git send-email' to format & send the mail to the | 26 | +static gboolean opt_print_caps; |
25 | qemu-devel@nongnu.org mailing list. All patches submitted must contain | 27 | +static char *iscsi_uri; |
26 | a 'Signed-off-by' line from the author. Patches should follow the | ||
27 | guidelines set out in the HACKING and CODING_STYLE files. | ||
28 | |||
29 | +A 'git-publish' utility was created to make above process less | ||
30 | +cumbersome, and is highly recommended for making regular contributions, | ||
31 | +or even just for sending consecutive patch series revisions. It also | ||
32 | +requires a working 'git send-email' setup, and by default doesn't | ||
33 | +automate everything, so you may want to go through the above steps | ||
34 | +manually the first time. | ||
35 | + | 28 | + |
36 | +For installation instructions, please go to | 29 | +static GOptionEntry entries[] = { |
30 | + { "print-capabilities", 'c', 0, G_OPTION_ARG_NONE, &opt_print_caps, | ||
31 | + "Print capabilities", NULL }, | ||
32 | + { "fd", 'f', 0, G_OPTION_ARG_INT, &opt_fdnum, | ||
33 | + "Use inherited fd socket", "FDNUM" }, | ||
34 | + { "iscsi-uri", 'i', 0, G_OPTION_ARG_FILENAME, &iscsi_uri, | ||
35 | + "iSCSI URI to connect to", "FDNUM" }, | ||
36 | + { "socket-path", 's', 0, G_OPTION_ARG_FILENAME, &opt_socket_path, | ||
37 | + "Use UNIX socket path", "PATH" }, | ||
38 | + { NULL, } | ||
39 | +}; | ||
37 | + | 40 | + |
38 | + https://github.com/stefanha/git-publish | 41 | int main(int argc, char **argv) |
42 | { | ||
43 | VusDev *vdev_scsi = NULL; | ||
44 | - char *unix_fn = NULL; | ||
45 | - char *iscsi_uri = NULL; | ||
46 | - int lsock = -1, csock = -1, opt, err = EXIT_SUCCESS; | ||
47 | + int lsock = -1, csock = -1, err = EXIT_SUCCESS; | ||
48 | |||
49 | - while ((opt = getopt(argc, argv, "u:i:")) != -1) { | ||
50 | - switch (opt) { | ||
51 | - case 'h': | ||
52 | - goto help; | ||
53 | - case 'u': | ||
54 | - unix_fn = g_strdup(optarg); | ||
55 | - break; | ||
56 | - case 'i': | ||
57 | - iscsi_uri = g_strdup(optarg); | ||
58 | - break; | ||
59 | - default: | ||
60 | - goto help; | ||
61 | - } | ||
62 | + GError *error = NULL; | ||
63 | + GOptionContext *context; | ||
39 | + | 64 | + |
40 | +The workflow with 'git-publish' is: | 65 | + context = g_option_context_new(NULL); |
66 | + g_option_context_add_main_entries(context, entries, NULL); | ||
67 | + if (!g_option_context_parse(context, &argc, &argv, &error)) { | ||
68 | + g_printerr("Option parsing failed: %s\n", error->message); | ||
69 | + exit(EXIT_FAILURE); | ||
70 | + } | ||
41 | + | 71 | + |
42 | + $ git checkout master -b my-feature | 72 | + if (opt_print_caps) { |
43 | + $ # work on new commits, add your 'Signed-off-by' lines to each | 73 | + g_print("{\n"); |
44 | + $ git publish | 74 | + g_print(" \"type\": \"scsi\"\n"); |
75 | + g_print("}\n"); | ||
76 | + goto out; | ||
77 | } | ||
78 | - if (!unix_fn || !iscsi_uri) { | ||
45 | + | 79 | + |
46 | +Your patch series will be sent and tagged as my-feature-v1 if you need to refer | 80 | + if (!iscsi_uri) { |
47 | +back to it in the future. | 81 | goto help; |
48 | + | 82 | } |
49 | +Sending v2: | 83 | |
50 | + | 84 | - lsock = unix_sock_new(unix_fn); |
51 | + $ git checkout my-feature # same topic branch | 85 | - if (lsock < 0) { |
52 | + $ # making changes to the commits (using 'git rebase', for example) | 86 | - goto err; |
53 | + $ git publish | 87 | + if (opt_socket_path) { |
54 | + | 88 | + lsock = unix_sock_new(opt_socket_path); |
55 | +Your patch series will be sent with 'v2' tag in the subject and the git tip | 89 | + if (lsock < 0) { |
56 | +will be tagged as my-feature-v2. | 90 | + exit(EXIT_FAILURE); |
57 | + | 91 | + } |
58 | Additional information on submitting patches can be found online via | 92 | + } else if (opt_fdnum < 0) { |
59 | the QEMU website | 93 | + g_print("%s\n", g_option_context_get_help(context, true, NULL)); |
60 | 94 | + exit(EXIT_FAILURE); | |
95 | + } else { | ||
96 | + lsock = opt_fdnum; | ||
97 | } | ||
98 | |||
99 | csock = accept(lsock, NULL, NULL); | ||
100 | @@ -XXX,XX +XXX,XX @@ out: | ||
101 | if (vdev_scsi) { | ||
102 | g_main_loop_unref(vdev_scsi->loop); | ||
103 | g_free(vdev_scsi); | ||
104 | - unlink(unix_fn); | ||
105 | + unlink(opt_socket_path); | ||
106 | } | ||
107 | if (csock >= 0) { | ||
108 | close(csock); | ||
109 | @@ -XXX,XX +XXX,XX @@ out: | ||
110 | if (lsock >= 0) { | ||
111 | close(lsock); | ||
112 | } | ||
113 | - g_free(unix_fn); | ||
114 | + g_free(opt_socket_path); | ||
115 | g_free(iscsi_uri); | ||
116 | |||
117 | return err; | ||
118 | @@ -XXX,XX +XXX,XX @@ err: | ||
119 | goto out; | ||
120 | |||
121 | help: | ||
122 | - fprintf(stderr, "Usage: %s [ -u unix_sock_path -i iscsi_uri ] | [ -h ]\n", | ||
123 | + fprintf(stderr, "Usage: %s [ -s socket-path -i iscsi-uri -f fd -p print-capabilities ] | [ -h ]\n", | ||
124 | argv[0]); | ||
125 | - fprintf(stderr, " -u path to unix socket\n"); | ||
126 | - fprintf(stderr, " -i iscsi uri for lun 0\n"); | ||
127 | + fprintf(stderr, " -s, --socket-path=SOCKET_PATH path to unix socket\n"); | ||
128 | + fprintf(stderr, " -i, --iscsi-uri=ISCSI_URI iscsi uri for lun 0\n"); | ||
129 | + fprintf(stderr, " -f, --fd=FILE_DESCRIPTOR file-descriptor\n"); | ||
130 | + fprintf(stderr, " -p, --print-capabilities=PRINT_CAPABILITIES denotes print-capabilities\n"); | ||
131 | fprintf(stderr, " -h print help and quit\n"); | ||
132 | |||
133 | goto err; | ||
61 | -- | 134 | -- |
62 | 2.14.3 | 135 | 2.35.1 |
63 | |||
64 | diff view generated by jsdifflib |
1 | Commit dce8921b2baaf95974af8176406881872067adfa ("iothread: Stop threads | 1 | The GLib documentation says "a NULL-terminated array of GOptionEntrys" |
---|---|---|---|
2 | before main() quits") introduced iothread_stop_all() to avoid the | 2 | so we'd better make sure there is a terminator that lets |
3 | following virtio-scsi assertion failure: | 3 | g_option_context_add_main_entries() know when the end of the array has |
4 | 4 | been reached. | |
5 | assert(blk_get_aio_context(d->conf.blk) == s->ctx); | ||
6 | |||
7 | Back then the assertion failed because when bdrv_close_all() made | ||
8 | d->conf.blk NULL, blk_get_aio_context() returned the global AioContext | ||
9 | instead of s->ctx. | ||
10 | |||
11 | The same assertion can still fail today when vcpus submit new I/O | ||
12 | requests after iothread_stop_all() has moved the BDS to the global | ||
13 | AioContext. | ||
14 | |||
15 | This patch hardens the iothread_stop_all() approach by pausing vcpus | ||
16 | before calling iothread_stop_all(). | ||
17 | |||
18 | Note that the assertion failure is a race condition. It is not possible | ||
19 | to reproduce it reliably. | ||
20 | 5 | ||
21 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 6 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
22 | Message-id: 20180201110708.8080-1-stefanha@redhat.com | 7 | Reviewed-by: Michael S. Tsirkin <mst@redhat.com> |
8 | Message-id: 20220411150057.3009667-1-stefanha@redhat.com | ||
23 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 9 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
24 | --- | 10 | --- |
25 | vl.c | 12 ++++++++++-- | 11 | contrib/vhost-user-blk/vhost-user-blk.c | 3 ++- |
26 | 1 file changed, 10 insertions(+), 2 deletions(-) | 12 | 1 file changed, 2 insertions(+), 1 deletion(-) |
27 | 13 | ||
28 | diff --git a/vl.c b/vl.c | 14 | diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c |
29 | index XXXXXXX..XXXXXXX 100644 | 15 | index XXXXXXX..XXXXXXX 100644 |
30 | --- a/vl.c | 16 | --- a/contrib/vhost-user-blk/vhost-user-blk.c |
31 | +++ b/vl.c | 17 | +++ b/contrib/vhost-user-blk/vhost-user-blk.c |
32 | @@ -XXX,XX +XXX,XX @@ int main(int argc, char **argv, char **envp) | 18 | @@ -XXX,XX +XXX,XX @@ static GOptionEntry entries[] = { |
33 | 19 | {"blk-file", 'b', 0, G_OPTION_ARG_FILENAME, &opt_blk_file, | |
34 | main_loop(); | 20 | "block device or file path", "PATH"}, |
35 | replay_disable_events(); | 21 | { "read-only", 'r', 0, G_OPTION_ARG_NONE, &opt_read_only, |
36 | + | 22 | - "Enable read-only", NULL } |
37 | + /* The ordering of the following is delicate. Stop vcpus to prevent new | 23 | + "Enable read-only", NULL }, |
38 | + * I/O requests being queued by the guest. Then stop IOThreads (this | 24 | + { NULL, }, |
39 | + * includes a drain operation and completes all request processing). At | 25 | }; |
40 | + * this point emulated devices are still associated with their IOThreads | 26 | |
41 | + * (if any) but no longer have any work to do. Only then can we close | 27 | int main(int argc, char **argv) |
42 | + * block devices safely because we know there is no more I/O coming. | ||
43 | + */ | ||
44 | + pause_all_vcpus(); | ||
45 | iothread_stop_all(); | ||
46 | - | ||
47 | - pause_all_vcpus(); | ||
48 | bdrv_close_all(); | ||
49 | + | ||
50 | res_free(); | ||
51 | |||
52 | /* vhost-user must be cleaned up before chardevs. */ | ||
53 | -- | 28 | -- |
54 | 2.14.3 | 29 | 2.35.1 |
55 | |||
56 | diff view generated by jsdifflib |
1 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> | 1 | From: Liu Yiding <liuyd.fnst@fujitsu.com> |
---|---|---|---|
2 | 2 | ||
3 | It is possible for rate limited writes to keep overshooting a slice's | 3 | virtiofsd has introduced killpriv_v2/no_killpriv_v2 for a while. Add |
4 | quota by a tiny amount causing the slice-aligned waiting period to | 4 | description of it to docs/helper. |
5 | effectively halve the rate. | ||
6 | 5 | ||
7 | Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com> | 6 | Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com> |
8 | Reviewed-by: Alberto Garcia <berto@igalia.com> | 7 | Message-Id: <20220421095151.2231099-1-liuyd.fnst@fujitsu.com> |
9 | Message-id: 20180207071758.6818-1-w.bumiller@proxmox.com | 8 | |
9 | [Small documentation fixes: s/as client supports/as the client supports/ | ||
10 | and s/. /. /. | ||
11 | --Stefan] | ||
12 | |||
10 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | 13 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> |
11 | --- | 14 | --- |
12 | include/qemu/ratelimit.h | 11 +++++------ | 15 | docs/tools/virtiofsd.rst | 5 +++++ |
13 | 1 file changed, 5 insertions(+), 6 deletions(-) | 16 | tools/virtiofsd/helper.c | 3 +++ |
17 | 2 files changed, 8 insertions(+) | ||
14 | 18 | ||
15 | diff --git a/include/qemu/ratelimit.h b/include/qemu/ratelimit.h | 19 | diff --git a/docs/tools/virtiofsd.rst b/docs/tools/virtiofsd.rst |
16 | index XXXXXXX..XXXXXXX 100644 | 20 | index XXXXXXX..XXXXXXX 100644 |
17 | --- a/include/qemu/ratelimit.h | 21 | --- a/docs/tools/virtiofsd.rst |
18 | +++ b/include/qemu/ratelimit.h | 22 | +++ b/docs/tools/virtiofsd.rst |
19 | @@ -XXX,XX +XXX,XX @@ typedef struct { | 23 | @@ -XXX,XX +XXX,XX @@ Options |
20 | static inline int64_t ratelimit_calculate_delay(RateLimit *limit, uint64_t n) | 24 | label. Server will try to set that label on newly created file |
21 | { | 25 | atomically wherever possible. |
22 | int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); | 26 | |
23 | - uint64_t delay_slices; | 27 | + * killpriv_v2|no_killpriv_v2 - |
24 | + double delay_slices; | 28 | + Enable/disable ``FUSE_HANDLE_KILLPRIV_V2`` support. KILLPRIV_V2 is enabled |
25 | 29 | + by default as long as the client supports it. Enabling this option helps | |
26 | assert(limit->slice_quota && limit->slice_ns); | 30 | + with performance in write path. |
27 | 31 | + | |
28 | @@ -XXX,XX +XXX,XX @@ static inline int64_t ratelimit_calculate_delay(RateLimit *limit, uint64_t n) | 32 | .. option:: --socket-path=PATH |
29 | return 0; | 33 | |
30 | } | 34 | Listen on vhost-user UNIX domain socket at PATH. |
31 | 35 | diff --git a/tools/virtiofsd/helper.c b/tools/virtiofsd/helper.c | |
32 | - /* Quota exceeded. Calculate the next time slice we may start | 36 | index XXXXXXX..XXXXXXX 100644 |
33 | - * sending data again. */ | 37 | --- a/tools/virtiofsd/helper.c |
34 | - delay_slices = (limit->dispatched + limit->slice_quota - 1) / | 38 | +++ b/tools/virtiofsd/helper.c |
35 | - limit->slice_quota; | 39 | @@ -XXX,XX +XXX,XX @@ void fuse_cmdline_help(void) |
36 | + /* Quota exceeded. Wait based on the excess amount and then start a new | 40 | " -o announce_submounts Announce sub-mount points to the guest\n" |
37 | + * slice. */ | 41 | " -o posix_acl/no_posix_acl Enable/Disable posix_acl. (default: disabled)\n" |
38 | + delay_slices = (double)limit->dispatched / limit->slice_quota; | 42 | " -o security_label/no_security_label Enable/Disable security label. (default: disabled)\n" |
39 | limit->slice_end_time = limit->slice_start_time + | 43 | + " -o killpriv_v2/no_killpriv_v2\n" |
40 | - delay_slices * limit->slice_ns; | 44 | + " Enable/Disable FUSE_HANDLE_KILLPRIV_V2.\n" |
41 | + (uint64_t)(delay_slices * limit->slice_ns); | 45 | + " (default: enabled as long as client supports it)\n" |
42 | return limit->slice_end_time - now; | 46 | ); |
43 | } | 47 | } |
44 | 48 | ||
45 | -- | 49 | -- |
46 | 2.14.3 | 50 | 2.35.1 |
47 | |||
48 | diff view generated by jsdifflib |
Deleted patch | |||
---|---|---|---|
1 | From: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
2 | 1 | ||
3 | s/pupulate/populate | ||
4 | |||
5 | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> | ||
6 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> | ||
7 | Message-id: 20180208162447.10851-1-marcandre.lureau@redhat.com | ||
8 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
9 | --- | ||
10 | util/qemu-coroutine-lock.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c | ||
14 | index XXXXXXX..XXXXXXX 100644 | ||
15 | --- a/util/qemu-coroutine-lock.c | ||
16 | +++ b/util/qemu-coroutine-lock.c | ||
17 | @@ -XXX,XX +XXX,XX @@ void qemu_co_queue_run_restart(Coroutine *co) | ||
18 | * invalid memory. Therefore, use a temporary queue and do not touch | ||
19 | * the "co" coroutine as soon as you enter another one. | ||
20 | * | ||
21 | - * In its turn resumed "co" can pupulate "co_queue_wakeup" queue with | ||
22 | + * In its turn resumed "co" can populate "co_queue_wakeup" queue with | ||
23 | * new coroutines to be woken up. The caller, who has resumed "co", | ||
24 | * will be responsible for traversing the same queue, which may cause | ||
25 | * a different wakeup order but not any missing wakeups. | ||
26 | -- | ||
27 | 2.14.3 | ||
28 | |||
29 | diff view generated by jsdifflib |