Re: [kvm-devel] Using VMChannel to communicate with the host.
Cam Macdonell wrote: Dor Laor wrote: I just tested it, it got a little deprecated over time since it call pci_module_init instead of pci_register_* and some more irq function deprecation.The sysfs interface in not complete and you can't read/write from the device. The qemu parameters are -vmchannel di:2258,unix:/tmp/file,server 2258 is the vendor id for the device, you can use unix sockets ot even tcp for the host end. Hi Dor, Thanks, that got it up and running. But in the hypercall.c code (from the git repo) there is a hello host message that looks like it should be written to the host. How do I trigger that to be sent so my very simple listening program can read it? Thanks, Cam You need to open the unix socket you passed to the vmchannel parameter. An easier alternative is to use -vmchannel di:2258,tcp://0:,server. Before the guest loads you'll need to telnet the port and then you should receive the hello world output once the driver is up. -Dor - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] kvm: Unknown symbol genapic
Made a wrong copy from old i386. the mask should be 0xff and clear in debug message too. reattached. GET_APIC_ID may use genapic instance for some machine configuration in i386 architecture, but it is not exported for outside usage. This patch remove this reference. Signed-off-by: Yaozu(Eddie) Dong [EMAIL PROTECTED] diff --git a/drivers/kvm/lapic.c b/drivers/kvm/lapic.c index a894dee..84bc4e3 100644 --- a/drivers/kvm/lapic.c +++ b/drivers/kvm/lapic.c @@ -110,7 +110,7 @@ static inline int apic_enabled(struct kvm_lapic *apic) static inline int kvm_apic_id(struct kvm_lapic *apic) { - return GET_APIC_ID(apic_get_reg(apic, APIC_ID)); + return (apic_get_reg(apic, APIC_ID) 24) 0xf; } static inline int apic_lvt_enabled(struct kvm_lapic *apic, int lvt_type) genapic.patch Description: genapic.patch - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] kvm-37 confusion
Hi all, It seems there was a lot of regressions on kvm-37. I've tried to follow the different patches and problem but the situation is full of confusion it seems. Perhaps there is the need for another release including the patches that are thought to fix the problem some of us have experienced? It would be easier to spot what's working and what's not. Cheers, Gildas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] [ kvm-Bugs-1792311 ] kvm: Unknown symbol genapic error on 32bit host
Bugs item #1792311, was opened at 2007-09-11 20:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1792311group_id=180599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: yunfeng (yunfeng) Assigned to: Nobody/Anonymous (nobody) Summary: kvm: Unknown symbol genapic error on 32bit host Initial Comment: Environment: HOST (ia32/ia32e/IA64): RHEL5 32p+kvm kernel GUEST (ia32/ia32e/IA64): COMMIT: kvm:e91a389683e0c2e8130e576176e0b8742fba03e6 kvm- userspace:ac427f9048d2191657257bc3d9f664dc508176ab Hardware: Bug detailed description: -- kvm: Unknown symbol genapic error happens when inserting kvm.ko on 32bit host. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1792311group_id=180599 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] [ kvm-Bugs-1792318 ] Cannot boot guests on 32bit host
Bugs item #1792318, was opened at 2007-09-11 20:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1792318group_id=180599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: yunfeng (yunfeng) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot boot guests on 32bit host Initial Comment: Environment: HOST (ia32/ia32e/IA64): RHEL5 32p + kvm kernel with kvm built-in GUEST (ia32/ia32e/IA64): COMMIT: kvm:e91a389683e0c2e8130e576176e0b8742fba03e6 kvm- userspace:ac427f9048d2191657257bc3d9f664dc508176ab Hardware: Bug detailed description: -- On 32bit host, all guests cannot be booted up. For linux guests, they will hang after printing Checking if this processor honours the WP bit even in supervisor mode. No abnormal message in dmesg. Since kvm.ko cannot be loaded on 32bit host, i built kvm into the kernel. Guest can be booted up if adding -no-kvm or no-kvm-irqchip to qemu command. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1792318group_id=180599 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Using VMChannel to communicate with the host.
On 11-Sep-07, at 1:09 AM, Dor Laor wrote: Cam Macdonell wrote: Dor Laor wrote: I just tested it, it got a little deprecated over time since it call pci_module_init instead of pci_register_* and some more irq function deprecation.The sysfs interface in not complete and you can't read/write from the device. The qemu parameters are -vmchannel di:2258,unix:/tmp/file,server 2258 is the vendor id for the device, you can use unix sockets ot even tcp for the host end. Hi Dor, Thanks, that got it up and running. But in the hypercall.c code (from the git repo) there is a hello host message that looks like it should be written to the host. How do I trigger that to be sent so my very simple listening program can read it? Thanks, Cam You need to open the unix socket you passed to the vmchannel parameter. An easier alternative is to use -vmchannel di:2258,tcp:// 0:,server. Before the guest loads you'll need to telnet the port and then you should receive the hello world output once the driver is up. -Dor I tried having a program listening on the unix domain socket. Actually, the VM won't even start until a program connects to the socket. I didn't get the message with my listening program, but I'll try the telnet method as I haven't programmed a socket in a while so I may have missed a step. While getting this working is novel to me, it seems from your email that not much can be done with the hypercall interface in terms of host-VM or VM-to-VM communication, correct? If reading and writing don't work, how can one exchange info between VMs? I'll look forward to the virtIO implementation. Thanks, Cam --- A. Cameron Macdonell Ph.D. Student Department of Computing Science University of Alberta [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Using VMChannel to communicate with the host.
Dor Laor wrote: You need to open the unix socket you passed to the vmchannel parameter. An easier alternative is to use -vmchannel di:2258,tcp:// 0:,server. Before the guest loads you'll need to telnet the port and then you should receive the hello world output once the driver is up. -Dor I tried having a program listening on the unix domain socket. Actually, the VM won't even start until a program connects to the socket. I didn't get the message with my listening program, but I'll try the telnet method as I haven't programmed a socket in a while so I may have missed a step. Go for it, its 1 minute effort. Hi Dor, It didn't work. I used the following option: -vmchannel di:2258,tcp:0:,server (the // confused kvm) and when the VM booted, I connected with telnet localhost which allowed the boot to proceed. But, I didn't get the hello host message when I loaded the hypercall module. dmesg did show that the module loaded successfully. I'll dig around with it and see what else I can figure out While getting this working is novel to me, it seems from your email that not much can be done with the hypercall interface in terms of host-VM or VM-to-VM communication, correct? If reading and writing don't work, how can one exchange info between VMs? I'll look forward to the virtIO implementation. The vmchannel was not intended to VM-to-VM networking, although it can work. Next version will be better. Anyway, it should have similar performance to pv network driver. Cool. Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] FOOTBALL! Are You ready?
How can spammers get on this list?? no captcha for sign-up in sourceforge?? FC On 9/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are you ready for some football? Don't miss a thing because you didn't know, this season. Check out our online stats and game information center: http://58.9.41.60/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel