All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4794C55F.102@qumranet.com>

diff --git a/a/2.hdr b/N1/2.hdr
index f850065..1383359 100644
--- a/a/2.hdr
+++ b/N1/2.hdr
@@ -1,5 +1,5 @@
 Content-Type: text/x-patch;
-	name="0005-qemu-register-the-memory-of-qemu-with-ksm.patch"
+ name="0005-qemu-register-the-memory-of-qemu-with-ksm.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
-	filename*0="0005-qemu-register-the-memory-of-qemu-with-ksm.patch"
+ filename*0="0005-qemu-register-the-memory-of-qemu-with-ksm.patch"
diff --git a/a/2.txt b/N1/2.txt
index fc541f9..8b13789 100644
--- a/a/2.txt
+++ b/N1/2.txt
@@ -1,73 +1 @@
->From 813266c7d59acb64c104448c255cc2c9d4f0187e Mon Sep 17 00:00:00 2001
-From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
-Date: Mon, 21 Jan 2008 17:41:09 +0200
-Subject: [PATCH] qemu: register the memory of qemu with ksm,
- so it can be shared
 
-Signed-off-by: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
----
- qemu/vl.c |   35 +++++++++++++++++++++++++++++++++++
- 1 files changed, 35 insertions(+), 0 deletions(-)
-
-diff --git a/qemu/vl.c b/qemu/vl.c
-index 756e13d..691db36 100644
---- a/qemu/vl.c
-+++ b/qemu/vl.c
-@@ -21,6 +21,8 @@
-  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-  * THE SOFTWARE.
-  */
-+
-+#include "ksm.h"
- #include "hw/hw.h"
- #include "hw/boards.h"
- #include "hw/usb.h"
-@@ -8501,6 +8503,37 @@ void qemu_get_launch_info(int *argc, char ***argv, int *opt_daemonize, const cha
-     *opt_incoming = incoming;
- }
- 
-+int ksm_register_memory(void)
-+{
-+    int fd;
-+    int ksm_fd;
-+    int r = 1;
-+    struct ksm_memory_region ksm_region;
-+
-+    fd = open("/dev/ksm", O_RDWR | O_TRUNC, (mode_t)0600);
-+    if (fd == -1)
-+        goto out;
-+
-+    ksm_fd = ioctl(fd, KSM_CREATE_SHARED_MEMORY_AREA);
-+    if (ksm_fd == -1)
-+        goto out_free;
-+
-+    ksm_region.npages = phys_ram_size / TARGET_PAGE_SIZE;
-+    ksm_region.addr = phys_ram_base;
-+    r = ioctl(ksm_fd, KSM_REGISTER_MEMORY_REGION, &ksm_region);
-+    if (r)
-+        goto out_free1;
-+
-+    return r;
-+
-+out_free1:
-+    close(ksm_fd);
-+out_free:
-+    close(fd);
-+out:
-+    return r;
-+}
-+
- int main(int argc, char **argv)
- {
- #ifdef CONFIG_GDBSTUB
-@@ -9353,6 +9386,8 @@ int main(int argc, char **argv)
-     }
- #endif
- 
-+    ksm_register_memory();
-+
-     bdrv_init();
- 
-     /* we always create the cdrom drive, even if no disk is there */
--- 
-1.5.3.6
diff --git a/a/3.hdr b/a/3.hdr
deleted file mode 100644
index 4b86001..0000000
--- a/a/3.hdr
+++ /dev/null
@@ -1,4 +0,0 @@
-Content-Type: text/plain; charset="us-ascii"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-Content-Disposition: inline
diff --git a/a/3.txt b/a/3.txt
deleted file mode 100644
index 7656627..0000000
--- a/a/3.txt
+++ /dev/null
@@ -1,4 +0,0 @@
--------------------------------------------------------------------------
-This SF.net email is sponsored by: Microsoft
-Defy all challenges. Microsoft(R) Visual Studio 2008.
-http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
diff --git a/a/4.hdr b/a/4.hdr
deleted file mode 100644
index 4b86001..0000000
--- a/a/4.hdr
+++ /dev/null
@@ -1,4 +0,0 @@
-Content-Type: text/plain; charset="us-ascii"
-MIME-Version: 1.0
-Content-Transfer-Encoding: 7bit
-Content-Disposition: inline
diff --git a/a/4.txt b/a/4.txt
deleted file mode 100644
index 960c924..0000000
--- a/a/4.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-_______________________________________________
-kvm-devel mailing list
-kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
-https://lists.sourceforge.net/lists/listinfo/kvm-devel
diff --git a/a/content_digest b/N1/content_digest
index 253b9df..e61c886 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,12 +1,12 @@
- "From\0Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>\0"
+ "From\0Izik Eidus <izike@qumranet.com>\0"
  "Subject\0[RFC][PATCH 5/5] example of userspace application register it memory in ksm\0"
  "Date\0Mon, 21 Jan 2008 18:16:31 +0200\0"
- "To\0kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>"
-  andrea-atKUWr5tajBWk0Htik3J/w@public.gmane.org
-  avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org
-  dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org
-  yaniv-atKUWr5tajBWk0Htik3J/w@public.gmane.org
- " linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org\0"
+ "To\0kvm-devel <kvm-devel@lists.sourceforge.net>"
+  andrea@qumranet.com
+  avi@qumranet.com
+  dor.laor@qumranet.com
+  yaniv@qumranet.com
+ " linux-mm@kvack.org\0"
  "\01:1\0"
  "b\0"
  "(this is the modification for qemu to make it work with ksm)\n"
@@ -16,90 +16,5 @@
  "\01:2\0"
  "fn\00005-qemu-register-the-memory-of-qemu-with-ksm.patch\0"
  "b\0"
- ">From 813266c7d59acb64c104448c255cc2c9d4f0187e Mon Sep 17 00:00:00 2001\n"
- "From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>\n"
- "Date: Mon, 21 Jan 2008 17:41:09 +0200\n"
- "Subject: [PATCH] qemu: register the memory of qemu with ksm,\n"
- " so it can be shared\n"
- "\n"
- "Signed-off-by: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>\n"
- "---\n"
- " qemu/vl.c |   35 +++++++++++++++++++++++++++++++++++\n"
- " 1 files changed, 35 insertions(+), 0 deletions(-)\n"
- "\n"
- "diff --git a/qemu/vl.c b/qemu/vl.c\n"
- "index 756e13d..691db36 100644\n"
- "--- a/qemu/vl.c\n"
- "+++ b/qemu/vl.c\n"
- "@@ -21,6 +21,8 @@\n"
- "  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n"
- "  * THE SOFTWARE.\n"
- "  */\n"
- "+\n"
- "+#include \"ksm.h\"\n"
- " #include \"hw/hw.h\"\n"
- " #include \"hw/boards.h\"\n"
- " #include \"hw/usb.h\"\n"
- "@@ -8501,6 +8503,37 @@ void qemu_get_launch_info(int *argc, char ***argv, int *opt_daemonize, const cha\n"
- "     *opt_incoming = incoming;\n"
- " }\n"
- " \n"
- "+int ksm_register_memory(void)\n"
- "+{\n"
- "+    int fd;\n"
- "+    int ksm_fd;\n"
- "+    int r = 1;\n"
- "+    struct ksm_memory_region ksm_region;\n"
- "+\n"
- "+    fd = open(\"/dev/ksm\", O_RDWR | O_TRUNC, (mode_t)0600);\n"
- "+    if (fd == -1)\n"
- "+        goto out;\n"
- "+\n"
- "+    ksm_fd = ioctl(fd, KSM_CREATE_SHARED_MEMORY_AREA);\n"
- "+    if (ksm_fd == -1)\n"
- "+        goto out_free;\n"
- "+\n"
- "+    ksm_region.npages = phys_ram_size / TARGET_PAGE_SIZE;\n"
- "+    ksm_region.addr = phys_ram_base;\n"
- "+    r = ioctl(ksm_fd, KSM_REGISTER_MEMORY_REGION, &ksm_region);\n"
- "+    if (r)\n"
- "+        goto out_free1;\n"
- "+\n"
- "+    return r;\n"
- "+\n"
- "+out_free1:\n"
- "+    close(ksm_fd);\n"
- "+out_free:\n"
- "+    close(fd);\n"
- "+out:\n"
- "+    return r;\n"
- "+}\n"
- "+\n"
- " int main(int argc, char **argv)\n"
- " {\n"
- " #ifdef CONFIG_GDBSTUB\n"
- "@@ -9353,6 +9386,8 @@ int main(int argc, char **argv)\n"
- "     }\n"
- " #endif\n"
- " \n"
- "+    ksm_register_memory();\n"
- "+\n"
- "     bdrv_init();\n"
- " \n"
- "     /* we always create the cdrom drive, even if no disk is there */\n"
- "-- \n"
- 1.5.3.6
- "\01:3\0"
- "b\0"
- "-------------------------------------------------------------------------\n"
- "This SF.net email is sponsored by: Microsoft\n"
- "Defy all challenges. Microsoft(R) Visual Studio 2008.\n"
- http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
- "\01:4\0"
- "b\0"
- "_______________________________________________\n"
- "kvm-devel mailing list\n"
- "kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org\n"
- https://lists.sourceforge.net/lists/listinfo/kvm-devel
 
-107e4cef64e1b6ff44345ae0e704bedbf43bd908511d707f8163c94dec046a49
+d9054f3710ae698c7bc9f2fbeff91994f3efddfb3972cf12c7f1a64053015877

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.