can kvm tool load vmlinux?

2011-12-14 Thread David Evensky
I've been trying see if I can use a vmlinux kernel binary image with kvm tool. If use a bzImage as lkvm run -k .../bzImage --console serial -d /dev/null which runs until it expectedly dies since I didn't give it an initramfs or disk. However, when I try: lkvm run -k .../bzImage --consol

Re: [PATCH V3 1/2] kvm tools: Add ability to map guest RAM from hugetlbfs

2011-12-13 Thread David Evensky
On an x86 32bit system (and using the 32bit CodeSourcery toolchain on a x86_64 system) I get: evensky@machine:~/.../linux-kvm/tools/kvm$ make CC util/util.o util/util.c: In function 'mmap_hugetlbfs': util/util.c:93:17: error: comparison between signed and unsigned integer expressions [

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
100 func 8008 ind flags -> 3024 func 4000 ind flags -> 4b4d564b 564b4d56 004d func 4001 ind flags -> 011b 0000 \dae On Thu, Nov 17, 2011 at 06:49:16PM +0200, A

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
megatux/vmatic$ perl -e 'for $cnt (1..1){ $o=`taskset 0x08 ./4sasha`; chomp($o); $histogram{$o}++}; for $o (sort keys %histogram){print "$o: $histogram{$o}\n"}' KVM_GET_SUPPORTED_CPUID returned -1 with errno 7: 1 Returned entries: 31: 9998 Returned entries: 54: 1 \dae On Th

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
urned entries: 37: 4 \dae On Thu, Nov 17, 2011 at 05:53:50PM +0200, Avi Kivity wrote: > On 11/17/2011 05:52 PM, Sasha Levin wrote: > > On Thu, 2011-11-17 at 07:50 -0800, David Evensky wrote: > > > It prints 'Returned entries: 31' > > > \dae > > > > Th

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
On Thu, Nov 17, 2011 at 08:07:35AM +0200, Sasha Levin wrote: > On Wed, 2011-11-16 at 16:42 -0800, David Evensky wrote: > > > > ... > This should be '-n mode=tap,guest_mac=00:11:11:11:11:11' > ... Thanks! > > > > Also, when I start the guest

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
It prints 'Returned entries: 31' \dae On Thu, Nov 17, 2011 at 05:43:49PM +0200, Sasha Levin wrote: > On Thu, 2011-11-17 at 07:38 -0800, David Evensky wrote: > > On Thu, Nov 17, 2011 at 08:56:38AM +0200, Sasha Levin wrote: > > > On Thu, 2011-11-17 at 08:53 +0200, Pe

Re: kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-17 Thread David Evensky
On Thu, Nov 17, 2011 at 08:56:38AM +0200, Sasha Levin wrote: > On Thu, 2011-11-17 at 08:53 +0200, Pekka Enberg wrote: > > On Thu, Nov 17, 2011 at 8:07 AM, Sasha Levin > > wrote: > > >> Also, when I start the guest I sometimes get the following error message: > > > David, which host kernel d

kvm-tools: can't seem to set guest_mac and KVM_GET_SUPPORTED_CPUID failed.

2011-11-16 Thread David Evensky
There was a patch (quoted below) that changed networking at the end of September. When I try to set the guest_mac from the usage in the patch and an admittaly too brief a look at the code, the guest's mac address isn't being set. I'm using: sudo /path/to/linux-kvm/tools/kvm/kvm run -c 1 -m 256

Re: [PATCH] kvm tools: Allow remapping guest TTY into host PTS

2011-09-15 Thread David Evensky
for debugging guest kernel using KGDB: > > > > > > 1. Run the guest: > > >'kvm run -k [vmlinuz] -p "kdbgoc=ttyS1 kdbgwait" --tty 1' > > > > > > And see which PTY got assigned to ttyS1. > > > > > > 2. Run GD

Re: kgdb hooks and kvm-tool

2011-09-14 Thread David Evensky
Thanks! \dae On Thu, Sep 15, 2011 at 08:39:03AM +0300, Sasha Levin wrote: > On Thu, 2011-09-15 at 08:32 +0300, Pekka Enberg wrote: > > On Thu, Sep 15, 2011 at 2:17 AM, David Evensky > > wrote: > > > Hi. Is it possible to use kvm-tool with a kernel compiled with kgdb?

kgdb hooks and kvm-tool

2011-09-14 Thread David Evensky
Hi. Is it possible to use kvm-tool with a kernel compiled with kgdb? I've tried adding 'kgdbwait kgdboc=ttyS0' to -p, but that doesn't seem to work. Thanks, \dae -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-28 Thread David Evensky
On Sun, Aug 28, 2011 at 10:34:45AM +0300, Avi Kivity wrote: > On 08/26/2011 01:03 AM, David Evensky wrote: > >I need to specify the physical address because I need to ioremap the > >memory during boot. > > Did you consider pci_ioremap_bar()? No, the code needs a physical

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-26 Thread David Evensky
Sasha, That is wonderful. It sounds like it should be OK, and will be happy to test. \dae On Fri, Aug 26, 2011 at 09:33:58AM +0300, Sasha Levin wrote: > On Thu, 2011-08-25 at 08:08 -0700, David Evensky wrote: > > Adding in the rest of what ivshmem does shouldn't affect our use

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-25 Thread David Evensky
y driver by a lot. > > > If you need the physical address to be fixed, you might be better off > by reserving a memory region in the e820 map rather than a PCI BAR, > since BARs can move around. > > > On Thu, Aug 25, 2011 at 8:08 AM, David Evensky > wrote: > >

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-25 Thread David Evensky
/26/2011 12:00 AM, David Evensky wrote: > >I've tested ivshmem with the latest git pull (had minor trouble > >building on debian sid, vnc and unused var, but trivial to work > >around). > > > >QEMU's -device ivshmem,size=16,shm=/kvm_shmem > > > >s

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-25 Thread David Evensky
On Thu, Aug 25, 2011 at 04:35:29PM -0500, Anthony Liguori wrote: dev.h > > >--- linux-kvm/tools/kvm/include/kvm/virtio-pci-dev.h 2011-08-09 > >15:38:48.760120973 -0700 > >+++ linux-kvm_pci_shmem/tools/kvm/include/kvm/virtio-pci-dev.h > >2011-08-18 10:06:12.171539230 -0700 > >@@ -15,10

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-25 Thread David Evensky
does the right thing. (Makes me want to steal code to make mine better :-)) \dae On Thu, Aug 25, 2011 at 08:08:06AM -0700, David Evensky wrote: > > Adding in the rest of what ivshmem does shouldn't affect our use, *I > think*. I hadn't intended this to do everything that ivs

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-25 Thread David Evensky
Adding in the rest of what ivshmem does shouldn't affect our use, *I think*. I hadn't intended this to do everything that ivshmem does, but I can see how that would be useful. It would be cool if it could grow into that. Our requirements for the driver in kvm tool are that another program on the

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-24 Thread David Evensky
On Thu, Aug 25, 2011 at 09:02:56AM +0300, Pekka Enberg wrote: > On Thu, Aug 25, 2011 at 1:25 AM, David Evensky wrote: > > + ? ? ? if (*next == '\0') > > + ? ? ? ? ? ? ? p = next; > > + ? ? ? else > > + ? ? ? ? ? ? ? p = next + 1; > > + ? ? ?

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-24 Thread David Evensky
On Thu, Aug 25, 2011 at 08:41:43AM +0300, Avi Kivity wrote: > On 08/25/2011 01:25 AM, David Evensky wrote: > > #define PCI_DEVICE_ID_VIRTIO_BLN 0x1005 > > #define PCI_DEVICE_ID_VIRTIO_P90x1009 > > #define PCI_DEVICE_ID_VESA

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-24 Thread David Evensky
On Thu, Aug 25, 2011 at 08:06:34AM +0300, Pekka Enberg wrote: > On Wed, 2011-08-24 at 21:49 -0700, David Evensky wrote: > > On Wed, Aug 24, 2011 at 10:27:18PM -0500, Alexander Graf wrote: > > > > > > On 24.08.2011, at 17:25, David Evensky wrote: > > > > &g

Re: [PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-24 Thread David Evensky
On Wed, Aug 24, 2011 at 10:27:18PM -0500, Alexander Graf wrote: > > On 24.08.2011, at 17:25, David Evensky wrote: > > > > > > > This patch adds a PCI device that provides PCI device memory to the > > guest. This memory in the guest exists as a shared memory

[PATCH] kvm tools: adds a PCI device that exports a host shared segment as a PCI BAR in the guest

2011-08-24 Thread David Evensky
a single --shmem is supported at this time. Signed-off-by: David Evensky diff -uprN -X linux-kvm/Documentation/dontdiff linux-kvm/tools/kvm/builtin-run.c linux-kvm_pci_shmem/tools/kvm/builtin-run.c --- linux-kvm/tools/kvm/builtin-run.c 2011-08-24 10:21:22.342077674 -0700 +++ linux-kvm_pci_shm

Re: [PATCH resend] kvm tools: Use correct size for VESA memory bar

2011-08-11 Thread David Evensky
Sasha, I've done a pull to get patch below and otherwise sync up and got an ioremap error. It is a little different from the patch I got from you previously that worked. The patch that worked changed pci.c as: - u8 bar = offset - PCI_BAR_OFFSET(0); + u

Re: [PATCH] kvm tools: Use correct size for VESA memory BAR

2011-08-10 Thread David Evensky
I don't know if there were any other drivers for this patch, but it along with another patch (maybe integrated elsewhere for 32bit BAR vs 8bit) certainly helped me out a lot. These patches fixed ioremap errors I was seeing (I had a 16MB PCI memory region, but it appeared to be only 256 bytes in s

coding standards for kvm tools?

2011-08-08 Thread David Evensky
Is that a pointer to the coding standards used for the kvm tools? Thanks, \dae -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

memory zones and the KVM guest kernel

2011-05-23 Thread David Evensky
Hi, When I boot my guest kernel with KVM, the dmesg output says that: ... [0.00] Zone PFN ranges: [0.00] DMA 0x0010 -> 0x1000 [0.00] DMA320x1000 -> 0x0010 [0.00] Normal empty [0.00] Movable zone start PFN for each node [