qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Kevin Wolf" <kwolf@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Fam Zheng" <famz@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Juan Quintela" <quintela@redhat.com>,
	"Hu Tao" <hutao@cn.fujitsu.com>,
	"Anthony Liguori" <aliguori@amazon.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	=?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
Subject: [Qemu-devel] [PULL 071/103] memory: move preallocation code out of exec.c
Date: Tue, 17 Jun 2014 20:40:35 +0300	[thread overview]
Message-ID: <1403021756-15960-72-git-send-email-mst@redhat.com> (raw)
In-Reply-To: <1403021756-15960-1-git-send-email-mst@redhat.com>

From: Paolo Bonzini <pbonzini@redhat.com>

So that backends can use it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/qemu/osdep.h |  2 ++
 exec.c               | 44 +------------------------------
 util/oslib-posix.c   | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 43 deletions(-)

diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index ffb2966..9c1a119 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -251,4 +251,6 @@ void qemu_init_auxval(char **envp);
 
 void qemu_set_tty_echo(int fd, bool echo);
 
+void os_mem_prealloc(int fd, char *area, size_t sz);
+
 #endif
diff --git a/exec.c b/exec.c
index 525fc04..f32e15d 100644
--- a/exec.c
+++ b/exec.c
@@ -1011,13 +1011,6 @@ static long gethugepagesize(const char *path)
     return fs.f_bsize;
 }
 
-static sigjmp_buf sigjump;
-
-static void sigbus_handler(int signal)
-{
-    siglongjmp(sigjump, 1);
-}
-
 static void *file_ram_alloc(RAMBlock *block,
                             ram_addr_t memory,
                             const char *path)
@@ -1082,42 +1075,7 @@ static void *file_ram_alloc(RAMBlock *block,
     }
 
     if (mem_prealloc) {
-        int ret, i;
-        struct sigaction act, oldact;
-        sigset_t set, oldset;
-
-        memset(&act, 0, sizeof(act));
-        act.sa_handler = &sigbus_handler;
-        act.sa_flags = 0;
-
-        ret = sigaction(SIGBUS, &act, &oldact);
-        if (ret) {
-            perror("file_ram_alloc: failed to install signal handler");
-            exit(1);
-        }
-
-        /* unblock SIGBUS */
-        sigemptyset(&set);
-        sigaddset(&set, SIGBUS);
-        pthread_sigmask(SIG_UNBLOCK, &set, &oldset);
-
-        if (sigsetjmp(sigjump, 1)) {
-            fprintf(stderr, "file_ram_alloc: failed to preallocate pages\n");
-            exit(1);
-        }
-
-        /* MAP_POPULATE silently ignores failures */
-        for (i = 0; i < (memory/hpagesize); i++) {
-            memset(area + (hpagesize*i), 0, 1);
-        }
-
-        ret = sigaction(SIGBUS, &oldact, NULL);
-        if (ret) {
-            perror("file_ram_alloc: failed to reinstall signal handler");
-            exit(1);
-        }
-
-        pthread_sigmask(SIG_SETMASK, &oldset, NULL);
+        os_mem_prealloc(fd, area, memory);
     }
 
     block->fd = fd;
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index 8e9c770..1524ead 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -46,6 +46,7 @@ extern int daemon(int, int);
 #else
 #  define QEMU_VMALLOC_ALIGN getpagesize()
 #endif
+#define HUGETLBFS_MAGIC       0x958458f6
 
 #include <termios.h>
 #include <unistd.h>
@@ -58,9 +59,12 @@ extern int daemon(int, int);
 #include "qemu/sockets.h"
 #include <sys/mman.h>
 #include <libgen.h>
+#include <setjmp.h>
+#include <sys/signal.h>
 
 #ifdef CONFIG_LINUX
 #include <sys/syscall.h>
+#include <sys/vfs.h>
 #endif
 
 #ifdef __FreeBSD__
@@ -332,3 +336,72 @@ char *qemu_get_exec_dir(void)
 {
     return g_strdup(exec_dir);
 }
+
+static sigjmp_buf sigjump;
+
+static void sigbus_handler(int signal)
+{
+    siglongjmp(sigjump, 1);
+}
+
+static size_t fd_getpagesize(int fd)
+{
+#ifdef CONFIG_LINUX
+    struct statfs fs;
+    int ret;
+
+    if (fd != -1) {
+        do {
+            ret = fstatfs(fd, &fs);
+        } while (ret != 0 && errno == EINTR);
+
+        if (ret == 0 && fs.f_type == HUGETLBFS_MAGIC) {
+            return fs.f_bsize;
+        }
+    }
+#endif
+
+    return getpagesize();
+}
+
+void os_mem_prealloc(int fd, char *area, size_t memory)
+{
+    int ret, i;
+    struct sigaction act, oldact;
+    sigset_t set, oldset;
+    size_t hpagesize = fd_getpagesize(fd);
+
+    memset(&act, 0, sizeof(act));
+    act.sa_handler = &sigbus_handler;
+    act.sa_flags = 0;
+
+    ret = sigaction(SIGBUS, &act, &oldact);
+    if (ret) {
+        perror("os_mem_prealloc: failed to install signal handler");
+        exit(1);
+    }
+
+    /* unblock SIGBUS */
+    sigemptyset(&set);
+    sigaddset(&set, SIGBUS);
+    pthread_sigmask(SIG_UNBLOCK, &set, &oldset);
+
+    if (sigsetjmp(sigjump, 1)) {
+        fprintf(stderr, "os_mem_prealloc: failed to preallocate pages\n");
+        exit(1);
+    }
+
+    /* MAP_POPULATE silently ignores failures */
+    memory = (memory + hpagesize - 1) & -hpagesize;
+    for (i = 0; i < (memory/hpagesize); i++) {
+        memset(area + (hpagesize*i), 0, 1);
+    }
+
+    ret = sigaction(SIGBUS, &oldact, NULL);
+    if (ret) {
+        perror("os_mem_prealloc: failed to reinstall signal handler");
+        exit(1);
+    }
+
+    pthread_sigmask(SIG_SETMASK, &oldset, NULL);
+}
-- 
MST

  parent reply	other threads:[~2014-06-17 17:40 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17 17:36 [Qemu-devel] [PULL 000/103] pc, pci, virtio, hotplug fixes, enhancements for 2.1 Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 001/103] pc: create custom generic PC machine type Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 002/103] pc: ACPI BIOS: use enum for defining memory affinity flags Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 003/103] object_add: allow completion handler to get canonical path Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 004/103] vl.c: daemonize before guest memory allocation Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 005/103] add memdev backend infrastructure Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 006/103] vl.c: extend -m option to support options for memory hotplug Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 007/103] qdev: hotplug for buss-less devices Michael S. Tsirkin
2014-06-18 14:11   ` Eric Blake
2014-06-18 14:36     ` Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 008/103] qdev: expose DeviceState.hotplugged field as a property Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 009/103] pc: implement pc-dimm device abstraction Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 010/103] memory: add memory_region_is_mapped() API Michael S. Tsirkin
2014-06-17 17:36 ` [Qemu-devel] [PULL 011/103] pc-dimm: do not allow to set already used memdev Michael S. Tsirkin
2014-06-17 18:39   ` Eric Blake
2014-06-17 18:42     ` Michael S. Tsirkin
2014-06-17 18:45     ` Peter Maydell
2014-06-17 18:53       ` Eric Blake
2014-06-17 19:49       ` Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 012/103] pc: initialize memory hotplug address space Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 013/103] pc: exit QEMU if number of slots more than supported 256 Michael S. Tsirkin
2014-06-17 18:42   ` Eric Blake
2014-06-17 19:08     ` Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 014/103] pc: add 'etc/reserved-memory-end' fw_cfg interface for SeaBIOS Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 015/103] pc: exit QEMU if compat machine doesn't support memory hotlpug Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 016/103] pc: add memory hotplug handler to PC_MACHINE Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 017/103] pc-dimm: add busy address check and address auto-allocation Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 018/103] pc-dimm: add busy slot check and slot auto-allocation Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 019/103] acpi: rename cpu_hotplug_defs.h to pc-hotplug.h Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 020/103] acpi: memory hotplug ACPI hardware implementation Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 021/103] trace: add acpi memory hotplug IO region events Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 022/103] trace: pc: add PC_DIMM slot & address allocation Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 023/103] acpi:piix4: allow plug/unlug callbacks handle not only PCI devices Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 024/103] acpi:piix4: add memory hotplug handling Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 025/103] pc: ich9 lpc: make it work with global/compat properties Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 026/103] acpi:ich9: add memory hotplug handling Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 027/103] pc: migrate piix4 & ich9 MemHotplugState Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 028/103] pc: add acpi-device link to PCMachineState Michael S. Tsirkin
2014-06-17 17:37 ` [Qemu-devel] [PULL 029/103] pc: propagate memory hotplug event to ACPI device Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 030/103] pc: ACPI BIOS: implement memory hotplug interface Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 031/103] pc: add "hotplug-memory-region-size" property to PC_MACHINE Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 032/103] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 033/103] pc: ACPI BIOS: make GPE.3 handle memory hotplug event on PIIX and Q35 machines Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 034/103] acpi: update generated files Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 035/103] acpi-test: update expected tables Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 036/103] virtio: Drop superfluous conditionals around g_free() Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 037/103] virtio: Drop superfluous conditionals around g_strdup() Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 038/103] qtest: fix hex2nib for capital characters Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 039/103] ich: get rid of spaces in type name Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 040/103] pc: q35: acpi: report error to user on unsupported unplug request Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 041/103] migration: export SELF_ANNOUNCE_ROUNDS Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 042/103] migration: introduce self_announce_delay() Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 043/103] virtio-net: announce self by guest Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 044/103] Add kvm_eventfds_enabled function Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 045/103] Add chardev API qemu_chr_fe_read_all Michael S. Tsirkin
2014-06-17 17:38 ` [Qemu-devel] [PULL 046/103] Add chardev API qemu_chr_fe_set_msgfds Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 047/103] Add chardev API qemu_chr_fe_get_msgfds Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 048/103] Add G_IO_HUP handler for socket chardev Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 049/103] vhost: add vhost_get_features and vhost_ack_features Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 050/103] vhost_net should call the poll callback only when it is set Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 051/103] Refactor virtio-net to use generic get_vhost_net Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 052/103] vhost_net_init will use VhostNetOptions to get all its arguments Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 053/103] Add vhost_ops to vhost_dev struct and replace all relevant ioctls Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 054/103] Add vhost-backend and VhostBackendType Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 055/103] Add vhost-user as a vhost backend Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 056/103] vhost-net: vhost-user feature bits support Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 057/103] Add new vhost-user netdev backend Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 058/103] Add the vhost-user netdev backend to the command line Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 059/103] Add vhost-user protocol documentation Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 060/103] libqemustub: add stubs to be able to use qemu-char.c Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 061/103] Add qtest for vhost-user Michael S. Tsirkin
2014-06-17 17:39 ` [Qemu-devel] [PULL 062/103] NUMA: move numa related code to new file numa.c Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 063/103] NUMA: check if the total numa memory size is equal to ram_size Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 064/103] NUMA: Add numa_info structure to contain numa nodes info Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 065/103] NUMA: convert -numa option to use OptsVisitor Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 066/103] NUMA: expand MAX_NODES from 64 to 128 Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 067/103] man: improve -numa doc Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 068/103] qmp: improve error reporting for -object and object-add Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 069/103] numa: introduce memory_region_allocate_system_memory Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 070/103] memory: reorganize file-based allocation Michael S. Tsirkin
2014-06-17 17:40 ` Michael S. Tsirkin [this message]
2014-06-17 17:40 ` [Qemu-devel] [PULL 072/103] memory: move RAM_PREALLOC_MASK to exec.c, rename Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 073/103] configure: add Linux libnuma detection Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 074/103] Introduce signed range Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 075/103] qom: introduce object_property_get_enum and object_property_get_uint16List Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 076/103] numa: add -numa node,memdev= option Michael S. Tsirkin
2014-06-17 17:40 ` [Qemu-devel] [PULL 077/103] memory: move mem_path handling to memory_region_allocate_system_memory Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 078/103] memory: add error propagation to file-based RAM allocation Michael S. Tsirkin
2014-06-17 20:49   ` Eric Blake
2014-06-17 17:41 ` [Qemu-devel] [PULL 079/103] vl: redo -object parsing Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 080/103] pc: pass MachineState to pc_memory_init Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 081/103] backend:hostmem: replace hostmemory with host_memory Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 082/103] hostmem: separate allocation from UserCreatable complete method Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 083/103] hostmem: add file-based HostMemoryBackend Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 084/103] hostmem: add merge and dump properties Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 085/103] hostmem: allow preallocation of any memory region Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 086/103] hostmem: add property to map memory with MAP_SHARED Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 087/103] hostmem: add properties for NUMA memory policy Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 088/103] qmp: add query-memdev Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 089/103] hmp: add info memdev Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 090/103] tests: fix memory leak in test of string input visitor Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 091/103] qapi: make string input visitor parse int list Michael S. Tsirkin
2014-06-17 21:36   ` Eric Blake
2014-06-18  3:13     ` Michael S. Tsirkin
2014-06-17 17:41 ` [Qemu-devel] [PULL 092/103] qapi: make string output " Michael S. Tsirkin
2014-06-17 21:45   ` Eric Blake
2014-06-18 15:02     ` Michael S. Tsirkin
2014-06-19  0:43       ` Hu Tao
2014-06-17 17:42 ` [Qemu-devel] [PULL 093/103] qapi: fix build on glib < 2.28 Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 094/103] qdev: reorganize error reporting in bus_set_realized Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 095/103] qdev: recursively unrealize devices when unrealizing bus Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 096/103] qmp: clean out whitespace Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 097/103] pc: acpi: do not hardcode preprocessor Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 098/103] numa: handle mmaped memory allocation failure correctly Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 099/103] qmp: add query-memory-devices command Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 100/103] acpi: introduce TYPE_ACPI_DEVICE_IF interface Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 101/103] acpi: implement ospm_status() method for PIIX4/ICH9_LPC devices Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 102/103] qmp: add query-acpi-ospm-status command Michael S. Tsirkin
2014-06-17 17:42 ` [Qemu-devel] [PULL 103/103] qmp: add ACPI_DEVICE_OST event handling Michael S. Tsirkin
2014-06-18 14:07 ` [Qemu-devel] [PULL 000/103] pc, pci, virtio, hotplug fixes, enhancements for 2.1 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403021756-15960-72-git-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=afaerber@suse.de \
    --cc=aliguori@amazon.com \
    --cc=famz@redhat.com \
    --cc=hutao@cn.fujitsu.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).