Re: FW: [Bug 117] New: [KVM-IPF] RTL8139 emulated network card can

Jes Sorensen <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64
Message-ID <[email protected]>
Zhang, Xiantao wrote:
> Hi, Jes
>      Currently, we only supports up to 8 vcpus, and to be safe, I set
> the limit to 4 (Defined in include/asm/kvm_host.h). Maybe you can
> increase the macro KVM_MAX_VCPUS to have a try.  In order to support >8
> vcpus, we can decrease the size of vtlb and vhpt, also defined in
> include/asm/kvm_host.h.  Thanks! :0
> Xiantao

Hi,

I am seeing something interesting here, but it could be a fluke:

I added this printk to my code:

void leave_hypervisor_tail(void)
{
	struct kvm_vcpu *v = current_vcpu;

	if (VMX(v, timer_check)) {
		VMX(v, timer_check) = 0;
		if (VMX(v, itc_check)) {
			if (vcpu_get_itc(v) > VCPU(v, itm)) {
			if (v->vcpu_id > 1)
				printk("vcpu %i irq check\n", v->vcpu_id);

Now I am seeing this in my syslog:

Oct 10 07:21:34 a4700rac kernel: vcpu 5 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 3 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 2 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 5 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 3 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 2 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 5 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 3 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 2 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 5 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 3 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 2 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 5 irq check
Oct 10 07:21:34 a4700rac kernel: vcpu 3 irq check

Note that I never seem to see irq checks for cpus 4, 6, 7 ..... maybe
syslog is chewing them up though, but it seems strange that they never
seem to appear.

This is when I boot with 8 vcpus.

Cheers,
Jes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.