Skip to contentSkip to conversation

Fix Cross-compiling with KVM support for ARM

PATCH Alexander Graf 1 participant 1 message Feb 9, 2012 5 messages not in the archive KVM

lore
Share & tools
lore
#5 lore raw
In reply to a message not in the archive
Quoted 11 lines · Christoffer Dall

sorry about missing reply-all before

Quoted 8 lines · Alexander Graf
Quoted 2 lines · Christoffer Dall

becuase KVM_CAP_IRQ_ROUTING is only defined when __KVM_HAVE_IOAPIC. kvm/arm does not have this defined.

Then it's not a cross compiling issue, but a header definition issue.

Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

any better way to fix this - I'm completely open to that.

Yes, get rid of conditional CAP definitions. Just always define them :). The number space is linear anyways, so it doesn't make any sense to hide specific constants.

this is a Linux imported header file. I'm not sure about the whole flow here, so consider this patch a hint to the qemu to please help me fix it then...

The flow to fix it is pretty straight forward:

1) make the cap definition unconditional in upstream kvm.git
2) run ./scripts/update-linux-headers.sh

and suddenly everything becomes a lot easier :).

Oh - while at it, why not make _all_ cap definitions unconditional?

Alex