Git Product home page Git Product logo

linux-dsm's People

Contributors

deeell-x avatar xianliang66 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux-dsm's Issues

Mellanox CX-3 PRO with two ubuntu 16.04 physical servers got "KVM_DSM_MEMCPY failed -22" error

Hi, we prepared an environemt of two phy hosts connected with each other by a pair of Mellanox CX-3 pro with a QFSP 40G cable.
We have test the rdma latency between each server by perftest (got 6us/iter about 192.168.100.11/24 pingpong 192.168.100.12/24). However, when we launch the giantVM among the two servers, we got the error "KVM_DSM_MEMCPY failed -22" foreground. Besides, we check the logs by dmesg, and got many errors which shown in below image.

image

Can any one help us to fix it? thank you.

besides, our shell script for launcing the giantVM is shown as below.

in 192.168.100.11:
./QEMU/x86_64-softmmu/qemu-system-x86_64 --nographic -hda ubuntu-server.img -cpu host -machine kernel-irqchip=off -smp 4 -m 4096 --enable-kvm -serial mon:stdio -local-cpu 2,start=0,iplist="192.168.100.11 192.168.100.12" -vnc :0

in 192.168.100.12:
./QEMU/x86_64-softmmu/qemu-system-x86_64 --nographic -hda ubuntu-server.img -cpu host -machine kernel-irqchip=off -smp 4 -m 4096 --enable-kvm -serial mon:stdio -local-cpu 2,start=2,iplist="192.168.100.11 192.168.100.12"

Implicit declaration of function ‘jhash’

Hi,

I just hit this error when compiling:

$ make
...
In file included from arch/x86/kvm/dsm.h:6:0,
                 from arch/x86/kvm/x86.c:25:
arch/x86/kvm/dsm-util.h: In function ‘jhash32’:
arch/x86/kvm/dsm-util.h:90:9: error: implicit declaration of function ‘jhash’; did you mean ‘jhash32’? [-Werror=implicit-function-declaration]
  return jhash(s, n, JHASH_INITVAL);
         ^~~~~
         jhash32
arch/x86/kvm/dsm-util.h:90:21: error: ‘JHASH_INITVAL’ undeclared (first use in this function); did you mean ‘DSM_INITIAL’?
  return jhash(s, n, JHASH_INITVAL);
                     ^~~~~~~~~~~~~
                     DSM_INITIAL
arch/x86/kvm/dsm-util.h:90:21: note: each undeclared identifier is reported only once for each function it appears in

I managed to fix it with this patch:

diff --git a/arch/x86/kvm/dsm-util.h b/arch/x86/kvm/dsm-util.h
index 7508d950..4cdc8d44 100644
--- a/arch/x86/kvm/dsm-util.h
+++ b/arch/x86/kvm/dsm-util.h
@@ -2,6 +2,7 @@
 #define ARCH_X86_KVM_DSM_UTIL_H
 
 #include <linux/kvm_host.h>
+#include <linux/jhash.h>
 
 #define DSM_INITIAL     0
 #define DSM_INVALID     1

Also, I am trying to compile the kernel using TCP/IP, so this macro is set:

#define USE_KTCP_NETWORK

Is this the right approach?

Using TCP/IP for DSM

Hi,

I am trying to compile using the TCP/IP for network communication. However, when I compile I get this error:

$ make
...
arch/x86/kvm/krdma.c: In function ‘krdma_connect_single’:
arch/x86/kvm/krdma.c:325:2: warning: ignoring return value of ‘kstrtol’, declared with attribute warn_unused_result [-Wunused-result]
  kstrtol(port, 10, &portdec);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/krdma.c: In function ‘krdma_listen’:
arch/x86/kvm/krdma.c:550:2: warning: ignoring return value of ‘kstrtol’, declared with attribute warn_unused_result [-Wunused-result]
  kstrtol(port, 10, &portdec);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC      arch/x86/kvm/dsm.o
arch/x86/kvm/dsm.c: In function ‘kvm_dsm_init’:
arch/x86/kvm/dsm.c:573:19: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  network_ops.send = ktcp_send;
                   ^
arch/x86/kvm/dsm.c:574:22: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  network_ops.receive = ktcp_receive;
                      ^
arch/x86/kvm/dsm.c:553:2: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
  copy_from_user(user_cluster_iplist, params->cluster_iplist, sizeof(void *) *
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    params->cluster_iplist_len);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/dsm.c:561:3: warning: ignoring return value of ‘strncpy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
   strncpy_from_user(kvm->arch.cluster_iplist[i], user_cluster_iplist[i], 20);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:293: recipe for target 'arch/x86/kvm/dsm.o' failed
make[2]: *** [arch/x86/kvm/dsm.o] Error 1
scripts/Makefile.build:544: recipe for target 'arch/x86/kvm' failed
make[1]: *** [arch/x86/kvm] Error 2
Makefile:995: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2

Any idea on the issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.