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
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 [
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
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
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
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
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
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
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
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
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?
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
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
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
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:
> >
/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
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
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
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
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;
> > + ? ? ?
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
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
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
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
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
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
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
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
[
28 matches
Mail list logo