[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=-ZZTAb_6cec-GKDBmsjgchM3h9Zg9_39+AD1t@mail.gmail.com>
Date: Fri, 4 Mar 2011 15:50:19 +0100
From: Francis Moreau <francis.moro@...il.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: 2.6.38-rc6: general protection error inside KVM 64 bits guest
Hello,
I'm running kernel 2.6.38-rc6 with qemu-kvm 0.12.3.
Doing this inside the guest:
int main(void)
{
if (ioperm(0x3e0, 4, 1) < 0) {
perror("ioperm");
exit(1);
}
outb(0, 0x3e0);
inb(0x3e1);
printf("exiting succesfully\n");
return 0;
}
make a general protection error.
Looking for the faulty instruction with gdb and found that's the 'inb'
instruction the culprit.
Running the same program on the host works fine.
Could anybody tell me what's wrong ?
Thanks
--
Francis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists