Re: Setting nx bit in virtual CPU

2010-04-12 Thread Richard Simpson
On 10/04/10 00:45, Andre Przywara wrote: > Richard Simpson wrote: >> On 08/04/10 09:52, Andre Przywara wrote: > OK, AFAIK there are several flags missing. I dimly remember there was a > bug with masking the CPUID bits in older kernels, so I guess you have to > celebrate your u

Re: Setting nx bit in virtual CPU

2010-04-08 Thread Richard Simpson
On 08/04/10 08:23, Avi Kivity wrote: > Strange. Can you hack qemu-kvm's cpuid code where it issues the ioctl > KVM_SET_CPUID2 to show what the data is? I'm not where that code is in > your version of qemu-kvm. Gad, the last time I tried to mess around with this sort of low level code was many y

Re: Setting nx bit in virtual CPU

2010-04-08 Thread Richard Simpson
On 08/04/10 09:52, Andre Przywara wrote: > Can you try to boot the attached multiboot "kernel", which just outputs > a brief CPUID dump? > $ qemu-kvm -kernel cpuid_mb -vnc :0 > (Unfortunately I have no serial console support in there yet, so you > either have to write the values down or screenshot

Re: Setting nx bit in virtual CPU

2010-04-07 Thread Richard Simpson
>> gordon Code # ./check-nx >> nx: enabled >> gordon Code # >> >> OK, seems to be enabled just fine. Any other ideas? I am beginning to >> get that horrible feeling that there isn't a real problem and it is just >> me being dumb! >> > I really hope so, because I am out of ideas... :) > > Can yo

Re: Setting nx bit in virtual CPU

2010-04-07 Thread Richard Simpson
On 07/04/10 13:23, Avi Kivity wrote: > On 04/07/2010 03:10 PM, Richard Simpson wrote: >> On 07/04/10 06:39, Avi Kivity wrote: >> >>> On 04/07/2010 01:31 AM, Richard Simpson wrote: >>> >>>> >>>>> 2.6.27 should be plenty f

Re: Setting nx bit in virtual CPU

2010-04-07 Thread Richard Simpson
On 07/04/10 06:39, Avi Kivity wrote: > On 04/07/2010 01:31 AM, Richard Simpson wrote: >> >>> 2.6.27 should be plenty fine for nx. Really the important bit is that >>> the host kernel has nx enabled. Can you check if that is so? >>> >>> >>

Re: Setting nx bit in virtual CPU

2010-04-06 Thread Richard Simpson
On 05/04/10 09:27, Avi Kivity wrote: > On 04/03/2010 12:07 AM, Richard Simpson wrote: >> Nope, both Kernels are 64 bit. >> >> uname -a Host: Linux gordon 2.6.27-gentoo-r8 #5 Sat Mar 14 18:01:59 GMT >> 2009 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

Re: Setting nx bit in virtual CPU

2010-04-02 Thread Richard Simpson
fine (only slowly) with exactly the same two kernels. Thanks On 01/04/10 09:43, Avi Kivity wrote: > On 03/30/2010 01:16 AM, Richard Simpson wrote: >> Hello, >> >> Summary: How can I have a virtual CPU with the nx bit set whilst >> enjoying KVM acceleration? >&g

Re: Setting nx bit in virtual CPU

2010-03-30 Thread Richard Simpson
OK, thanks for that. Clearly something wrong with my installation. At least now I know it is possible I can keep fiddling until it works. Richard On 30/03/10 03:12, Chris Wright wrote: > * Richard Simpson (rs1...@huskydog.org.uk) wrote: >> So, is there any way of having the nx bi

Setting nx bit in virtual CPU

2010-03-29 Thread Richard Simpson
Hello, Summary: How can I have a virtual CPU with the nx bit set whilst enjoying KVM acceleration? My Host - AMD Athlon(tm) 64 Processor 3200+ running Gentoo My VM - KVM running hardened Gentoo My KVM version - 0.12.3 My Task - Implement restricted secure VM to handle services exposed to internet