* Qemu vs Qemu-KVM
@ 2009-12-20 23:10 Mikolaj Kucharski
2009-12-21 7:22 ` Gleb Natapov
0 siblings, 1 reply; 7+ messages in thread
From: Mikolaj Kucharski @ 2009-12-20 23:10 UTC (permalink / raw)
To: kvm
Hi all,
Qemu and Qemu-KVM, are they the same projects with the same developers
behind of those projects or not? Are those projects trying to converge
at some stage, or is this just RedHat's convention to create from kvm's
sources package named qemu?
I have an issue with qemu from Fedora 12, and I've send email[#ref1] to
qemu-devel mailing list, but after looking again closer to 0.12.1
release from qemu.org and kvm.sf.net sources are not the same.
I have personal interest in resolving RedHat's bz #508801, unfortunately
I cannot do that myself, so I wanted to ask on the list for help, but now
I'm confused where should I go.
References
1. http://marc.info/?l=qemu-devel&m=126132150719852&w=2
2. https://bugzilla.redhat.com/show_bug.cgi?id=508801
--
best regards
q#
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-20 23:10 Qemu vs Qemu-KVM Mikolaj Kucharski
@ 2009-12-21 7:22 ` Gleb Natapov
2009-12-21 9:33 ` Avi Kivity
2009-12-21 22:21 ` Mikolaj Kucharski
0 siblings, 2 replies; 7+ messages in thread
From: Gleb Natapov @ 2009-12-21 7:22 UTC (permalink / raw)
To: Mikolaj Kucharski, kvm
On Sun, Dec 20, 2009 at 11:10:24PM +0000, Mikolaj Kucharski wrote:
> Hi all,
>
> Qemu and Qemu-KVM, are they the same projects with the same developers
> behind of those projects or not? Are those projects trying to converge
> at some stage, or is this just RedHat's convention to create from kvm's
> sources package named qemu?
>
Trying to converge.
> I have an issue with qemu from Fedora 12, and I've send email[#ref1] to
> qemu-devel mailing list, but after looking again closer to 0.12.1
> release from qemu.org and kvm.sf.net sources are not the same.
>
> I have personal interest in resolving RedHat's bz #508801, unfortunately
> I cannot do that myself, so I wanted to ask on the list for help, but now
> I'm confused where should I go.
>
Can you try kvm modules from latest kvm.git please? It looks like emulation of
"push %ds" fails and it was added after 2.6.32.
--
Gleb.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-21 7:22 ` Gleb Natapov
@ 2009-12-21 9:33 ` Avi Kivity
2009-12-21 22:21 ` Mikolaj Kucharski
1 sibling, 0 replies; 7+ messages in thread
From: Avi Kivity @ 2009-12-21 9:33 UTC (permalink / raw)
To: Gleb Natapov; +Cc: Mikolaj Kucharski, kvm
On 12/21/2009 09:22 AM, Gleb Natapov wrote:
>
> Can you try kvm modules from latest kvm.git please? It looks like emulation of
> "push %ds" fails and it was added after 2.6.32.
>
>
We shouldn't be emulating 'push %ds' at all. It's not used either for
mmio or for updating page tables. Something went wrong earlier.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-21 7:22 ` Gleb Natapov
2009-12-21 9:33 ` Avi Kivity
@ 2009-12-21 22:21 ` Mikolaj Kucharski
2009-12-22 7:15 ` Gleb Natapov
2009-12-22 8:53 ` Avi Kivity
1 sibling, 2 replies; 7+ messages in thread
From: Mikolaj Kucharski @ 2009-12-21 22:21 UTC (permalink / raw)
To: kvm
On Mon, Dec 21, 2009 at 09:22:52AM +0200, Gleb Natapov wrote:
> > I have personal interest in resolving RedHat's bz #508801, unfortunately
> > I cannot do that myself, so I wanted to ask on the list for help, but now
> > I'm confused where should I go.
> >
> Can you try kvm modules from latest kvm.git please? It looks like emulation of
> "push %ds" fails and it was added after 2.6.32.
Having following GIT repositories:
git://git.kernel.org/pub/scm/virt/kvm/kvm.git
git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
Which one I should use to build my modules from? I would like to keep my
system (Fedora 12) consistent and I don't want to have any parts built
outside of rpm. I would like to contribute/help for RedHat's bz #508801
resolution, but I need some directions.
Is kvm.git whole Linux kernel?
--
best regards
q#
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-21 22:21 ` Mikolaj Kucharski
@ 2009-12-22 7:15 ` Gleb Natapov
2009-12-22 14:20 ` Gleb Natapov
2009-12-22 8:53 ` Avi Kivity
1 sibling, 1 reply; 7+ messages in thread
From: Gleb Natapov @ 2009-12-22 7:15 UTC (permalink / raw)
To: Mikolaj Kucharski, kvm
On Mon, Dec 21, 2009 at 10:21:14PM +0000, Mikolaj Kucharski wrote:
> On Mon, Dec 21, 2009 at 09:22:52AM +0200, Gleb Natapov wrote:
> > > I have personal interest in resolving RedHat's bz #508801, unfortunately
> > > I cannot do that myself, so I wanted to ask on the list for help, but now
> > > I'm confused where should I go.
> > >
> > Can you try kvm modules from latest kvm.git please? It looks like emulation of
> > "push %ds" fails and it was added after 2.6.32.
>
> Having following GIT repositories:
>
> git://git.kernel.org/pub/scm/virt/kvm/kvm.git
> git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
>
> Which one I should use to build my modules from? I would like to keep my
> system (Fedora 12) consistent and I don't want to have any parts built
> outside of rpm. I would like to contribute/help for RedHat's bz #508801
> resolution, but I need some directions.
>
> Is kvm.git whole Linux kernel?
>
Don't bother, I already tested upstream with OpenBSD and, as Avi said,
the problem is somewhere else.
--
Gleb.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-21 22:21 ` Mikolaj Kucharski
2009-12-22 7:15 ` Gleb Natapov
@ 2009-12-22 8:53 ` Avi Kivity
1 sibling, 0 replies; 7+ messages in thread
From: Avi Kivity @ 2009-12-22 8:53 UTC (permalink / raw)
To: Mikolaj Kucharski, kvm
On 12/22/2009 12:21 AM, Mikolaj Kucharski wrote:
> On Mon, Dec 21, 2009 at 09:22:52AM +0200, Gleb Natapov wrote:
>
>>> I have personal interest in resolving RedHat's bz #508801, unfortunately
>>> I cannot do that myself, so I wanted to ask on the list for help, but now
>>> I'm confused where should I go.
>>>
>>>
>> Can you try kvm modules from latest kvm.git please? It looks like emulation of
>> "push %ds" fails and it was added after 2.6.32.
>>
> Having following GIT repositories:
>
> git://git.kernel.org/pub/scm/virt/kvm/kvm.git
> git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
>
> Which one I should use to build my modules from? I would like to keep my
> system (Fedora 12) consistent and I don't want to have any parts built
> outside of rpm. I would like to contribute/help for RedHat's bz #508801
> resolution, but I need some directions.
>
>
git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
git submodule init
git submodule update
./configure
make sync
make
make install
> Is kvm.git whole Linux kernel
Yes. kvm-kmod downloads it (via git submodule) and extracts the kvm
bits (via make sync).
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Qemu vs Qemu-KVM
2009-12-22 7:15 ` Gleb Natapov
@ 2009-12-22 14:20 ` Gleb Natapov
0 siblings, 0 replies; 7+ messages in thread
From: Gleb Natapov @ 2009-12-22 14:20 UTC (permalink / raw)
To: Mikolaj Kucharski, kvm
On Tue, Dec 22, 2009 at 09:15:57AM +0200, Gleb Natapov wrote:
> On Mon, Dec 21, 2009 at 10:21:14PM +0000, Mikolaj Kucharski wrote:
> > On Mon, Dec 21, 2009 at 09:22:52AM +0200, Gleb Natapov wrote:
> > > > I have personal interest in resolving RedHat's bz #508801, unfortunately
> > > > I cannot do that myself, so I wanted to ask on the list for help, but now
> > > > I'm confused where should I go.
> > > >
> > > Can you try kvm modules from latest kvm.git please? It looks like emulation of
> > > "push %ds" fails and it was added after 2.6.32.
> >
> > Having following GIT repositories:
> >
> > git://git.kernel.org/pub/scm/virt/kvm/kvm.git
> > git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
> >
> > Which one I should use to build my modules from? I would like to keep my
> > system (Fedora 12) consistent and I don't want to have any parts built
> > outside of rpm. I would like to contribute/help for RedHat's bz #508801
> > resolution, but I need some directions.
> >
> > Is kvm.git whole Linux kernel?
> >
> Don't bother, I already tested upstream with OpenBSD and, as Avi said,
> the problem is somewhere else.
>
For some strange reason openbsd configures gsi 4 (com0) and gsi 12
(i8042) to be level triggered active high in ioapic. That causes KVM
to send endless stream of interrupts into the guest, so guest's stack
overflows into framebuffer area. At this point KVM start to emulate
instructions and fails. I don't know why openbsd configures those
interrupts incorrectly. It also ignores my attempts to override interrupt
polarity/type with ACPI tables. Somebody knowledgeable in openbsd should
look into why it configures interrupt controller incorrectly. If I
override wrong settings inside KVM like in the patch below openbsd boots,
but I doubt com port is usable.
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index 38a2d20..fc37eac 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -121,6 +121,8 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val)
default:
index = (ioapic->ioregsel - 0x10) >> 1;
+ if (!(ioapic->ioregsel & 1))
+ val &= ~0xa000;
ioapic_debug("change redir index %x val %x\n", index, val);
if (index >= IOAPIC_NUM_PINS)
return;
--
Gleb.
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-12-22 14:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-20 23:10 Qemu vs Qemu-KVM Mikolaj Kucharski
2009-12-21 7:22 ` Gleb Natapov
2009-12-21 9:33 ` Avi Kivity
2009-12-21 22:21 ` Mikolaj Kucharski
2009-12-22 7:15 ` Gleb Natapov
2009-12-22 14:20 ` Gleb Natapov
2009-12-22 8:53 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox