[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] No hvm support? AMD Athlon 64, AM2




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
Andreas Fromm
Sent: 05 November 2006 14:13
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] No hvm support? AMD Athlon 64, AM2

first of all hi to everybody. I have been reading this list a 
while and
searched the archive, but couldn't get a answer to my problem, so here
it is.

I' have bought myself a new Computer which I wanted to be able to run
hvm domains under xen. So I took a AMD Athlon 64 3800+ (Orleans) CPU
with AM2 socket and a Asus M2NPV-MX mainboard (nvidia nforce c51
chipset). I installed debian amd64 unstable with the stock xen kernel
and related packages. The CPU reports the svm capability, but xm dmesg
doesn't show anything about svm.
Does that mean that my mainboard doesn't support hvm-domains 
under xen,
or is there a chance to get it to run?
    

That's very strange - can you see SVM in the Dom0 with "cat
/proc/cpuinfo | grep svm"?
And what does "xm dmesg | grep -i svm" say?

  
Oh, I didn't say -i to grep, I thougt case ignoring where  default, so I didn't saw anything. SVM isenabled for cpu0, but this doesn't solve my problem.
As far as I'm aware, there is no way that you could turn off SVM in the
processor (with currently available processors on the market today -
this may change in the future). 
Which changeset is it ("xm info|grep changeset")?
  
~# xm info|grep changeset
xen_changeset          : Tue Oct 17 22:09:52 2006 +0100

what is the changeset? The day of the cvs checkout the binary was build with or something like that?

As the problem doesn't seem to be a hardware-model-problem, here is the output of the logs I get when I try to create a hvm domain. Maybe someone can give me a hint of what is going wrong.


CPU frequency scaling (cpufreq) doesn't work under Xen at the moment -
mainly because the white-list that allows MSR writes doesn't include the
MSR_K7_FID_VID_CTL register to be written - but even if you can write
it, it wouldn't work "right" for the system. I presume this is what you
mean by throttling, and not the trick that was used on some processors
to prevent them from overheating: pulling stpclk for a few microseconds
every so often, until they were running "slow enough" to not get too
hot... Which is the technique that I would use the term throttling for -
frequency scaling is where software and hardware co-operates to save
power and/or reduce heat generated by adjusting the speed of the
processor. Throttling is more of a "stick a log in the spokes for a bit"
type solution. 

  
Well, yes I meant frequency scaling. I know that it doesn't work under xen, and I understand that it would be hard to implement it, but it doesn't work under a non xen kernel either. Thats what I'm worried about.


Greetings

Andreas
[2006-11-06 23:46:54 xend 14855] INFO (__init__:1072) Xend Daemon started
[2006-11-06 23:46:54 xend 14855] INFO (__init__:1072) Xend changeset: Tue Oct 
17 22:09:52 2006 +0100 .
[2006-11-06 23:46:54 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.recreate({'paused': 0, 'cpu_time': 2155511357778L, 'ssidref': 0, 
'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 
0, 'dying': 0, 'dom': 0, 'mem_kb': 524288, 'maxmem_kb': 17179869180, 
'max_vcpu_id': 0, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 1, 
'blocked': 0})
[2006-11-06 23:46:54 xend.XendDomainInfo 14855] INFO (__init__:1072) Recreating 
domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2006-11-06 23:46:54 xend 14855] DEBUG (__init__:1072) number of vcpus to use 
is 0
[2006-11-06 23:46:54 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.handleShutdownWatch
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.create(['vm', ['name', 'zeark'], ['memory', 64], ['on_poweroff', 
'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], 
['image', ['hvm', ['kernel', '/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['ip', 
'192.168.178.3:1.2.3.4:192.168.178.1:255.255.255.0::eth0:off'], ['vcpus', 1], 
['boot', 'd'], ['vnc', 1], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], 
['xauthority', '/home/afromm/.Xauthority'], ['device_model', 
'/usr/lib/xen-3.0.3-1/bin/qemu-dm']]], ['device', ['vbd', ['uname', 
'phy:/dev/xenlvm/zeark'], ['dev', 'ioemu:hda'], ['mode', 'w']]], ['device', 
['vbd', ['uname', 'file:/root/download/ipcop-install-cd-1.4.11.i386.iso'], 
['dev', 'ioemu:hdc'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['type', 'ioemu']]]])
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
parseConfig: config is ['vm', ['name', 'zeark'], ['memory', 64], 
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], 
['vcpus', 1], ['image', ['hvm', ['kernel', 
'/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['ip', 
'192.168.178.3:1.2.3.4:192.168.178.1:255.255.255.0::eth0:off'], ['vcpus', 1], 
['boot', 'd'], ['vnc', 1], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], 
['xauthority', '/home/afromm/.Xauthority'], ['device_model', 
'/usr/lib/xen-3.0.3-1/bin/qemu-dm']]], ['device', ['vbd', ['uname', 
'phy:/dev/xenlvm/zeark'], ['dev', 'ioemu:hda'], ['mode', 'w']]], ['device', 
['vbd', ['uname', 'file:/root/download/ipcop-install-cd-1.4.11.i386.iso'], 
['dev', 'ioemu:hdc'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['type', 'ioemu']]]]
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': 
'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['hvm', 
['kernel', '/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['ip', 
'192.168.178.3:1.2.3.4:192.168.178.1:255.255.255.0::eth0:off'], ['vcpus', 1], 
['boot', 'd'], ['vnc', 1], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], 
['xauthority', '/home/afromm/.Xauthority'], ['device_model', 
'/usr/lib/xen-3.0.3-1/bin/qemu-dm']], 'on_poweroff': 'destroy', 
'bootloader_args': None, 'cpus': None, 'name': 'zeark', 'backend': [], 'vcpus': 
1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 64, 
'device': [('vbd', ['vbd', ['uname', 'phy:/dev/xenlvm/zeark'], ['dev', 
'ioemu:hda'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 
'file:/root/download/ipcop-install-cd-1.4.11.i386.iso'], ['dev', 'ioemu:hdc'], 
['mode', 'r']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']])], 
'bootloader': None, 'cpu': None, 'maxmem': None}
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.construct: None
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.initDomain: 5 1.0
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: boot, val: d
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: fda, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: fdb, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: soundhw, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: localtime, val: 
None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: serial, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: std-vga, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: isa, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: vcpus, val: 1
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: acpi, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: usb, val: None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) args: usbdevice, val: 
None
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) Balloon: 494512 KiB 
free; need 80028; done.
[2006-11-06 23:48:49 xend 14855] INFO (__init__:1072) buildDomain os=hvm dom=5 
vcpus=1
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) dom            = 5
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) image          = 
/usr/lib/xen-3.0.3-1/boot/hvmloader
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) store_evtchn   = 1
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) memsize        = 64
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) vcpus          = 1
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) pae            = 0
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) acpi           = 0
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) apic           = 0
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) hvm shutdown watch 
registered
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] ERROR (__init__:1072) Domain 
construction failed
Traceback (most recent call last):
  File "/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/XendDomainInfo.py", 
line 195, in create
    vm.initDomain()
  File "/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/XendDomainInfo.py", 
line 1363, in initDomain
    raise VmError(str(exn))
VmError: (12, 'Cannot allocate memory')
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.destroy: domid=5
[2006-11-06 23:48:49 xend.XendDomainInfo 14855] DEBUG (__init__:1072) 
XendDomainInfo.destroyDomain(5)
[2006-11-06 23:48:49 xend 14855] DEBUG (__init__:1072) hvm shutdown watch 
unregistered
[2006-11-06 23:48:49 xend 14855] ERROR (__init__:1072) read_watch failed
Traceback (most recent call last):
  File "/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xswatch.py", 
line 66, in watchMain
    res = watch.fn(we[0], *watch.args, **watch.kwargs)
  File "/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/image.py", line 431, in 
hvm_shutdown
    reason = vm.readDom('control/shutdown')
AttributeError: 'NoneType' object has no attribute 'readDom'
ERROR: Could not enable shadow paging for domain.
 (12 = Cannot allocate memory)
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.