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

Re: [win-pv-devel] New windows pv drivers question



Il 23/09/2014 17:22, Paul Durrant ha scritto:
-----Original Message-----
From: Fabio Fantoni [mailto:fabio.fantoni@xxxxxxx]
Sent: 23 September 2014 16:03
To: Paul Durrant
Cc: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: New windows pv drivers question

Il 22/09/2014 11:30, Fabio Fantoni ha scritto:
Il 19/09/2014 11:22, Paul Durrant ha scritto:
Moving xen-devel to bcc and adding win-pv-devel...

-----Original Message-----
From: Fabio Fantoni [mailto:fabio.fantoni@xxxxxxx]
Sent: 19 September 2014 09:55
To: xen-devel; Paul Durrant
Subject: New windows pv drivers question

Hi, I saw the "new" pvdriver drivers in xen's git repository and the
new
wiki pages about.
I want start to try them if possible (for example to seems if occasion
windows domUs network crash  I had with xen 4.4-stable and xen-
unstable
is ejbpv driver or xen problem), I saw that there are 3 repository in
xenserver's github still missed here but seems with a fast look that
all
essential drivers repositories are in xen's git now.
Fabio,

That's right. I have a blog to introduce the new Xen Project Windows
PV Drivers sub-project ready to go but it's run into some technical
difficulties; hopefully I'll get it out early next week.
Not all the code that is relevant to XenServer is necessarily
relevant to the wider Xen community; e.g. the guest agent and
installer are very much XenServer-specific and therefore they do not
form part of the sub-project. All the driver code is available on
xenbits (under the pvdrivers/win directory) though and it has been
stripped of XenServer branding. (The branding is now parameterized
and applied at build time, so anyone can build their own branded
binaries should they wish to).
Is possible start basic tests of them or there are still other
important
changes and/or fixes to do?
If is possible start test them there is a testing build available or or
should I do it?

I am setting up some build infrastructure as part of the sub-project
- in fact I just got it going for the first time yesterday - and I
hope to have un-branded binary packages available for the community
in the very near future.
In the meantime, there are build instructions available on the wiki
at http://wiki.xenproject.org/wiki/Windows_PV_Drivers/Building which
are fairly straightforward, so you should be able to build your own.
Happily Microsoft made building drivers free again the with Windows
8.1 WDK as you can now use the Visual Studio 2013 Express (i.e. free)
edition compiler. Note that you don't have to use the Visual Studio
IDE; there are python scripts in the driver repositories which wrap
the msbuild utility so you can drive it all from the command line :-)

AFAIK the drivers should work in pretty much any host environment: I
have been testing them myself on a recent build of xen-unstable using
my own 3.14-ish dom0 kernel and upstream QEMU. Just make sure you
enable test-signing in your VMs.

Thanks for any reply and sorry for my bad english.
No problem. Please get back to me (cc-ing win-pv-devel) if you do run
into difficulties.

Cheers,

      Paul
Thanks for your reply.
Soon as I finish downloading everything needed I'll try to do a build.
I have other 2 questions:

I saw that the xen's repositories are forked by xenserver's github
ones but the changes after are merged in both, will remain different
projects? One project compatible for all cases I think will be better
quality and less waste of time.

About repositories missed now in xen there is win-xenguestagent that
contain some features very useful, in particolar shutdown (already
present in gplpv I use in production now) and resetting system time
following resume-from-suspend and migration (now missed in gplpv but
will solves login problem after restore in domUs that are in windows
domain). Will be adapted for xen also that?

Thanks for any reply.
I installed in one windows 8.1 enterprise 64 bit domU (all updated) WDK
8.1, visual studio 2013.3 express, latest python 3.
I tried to build xenbus following the README and launching build.py free.
After some minutes of compile it fails with this error:
Compilazione di
"C:\Users\Emilio\Desktop\pvdrivers\xenbus\vs2013\xen\xen.vcxproj
" (2) dal progetto
"C:\Users\Emilio\Desktop\pvdrivers\xenbus\vs2013\xenbus.sln"
(1) sul nodo 1 (destinazioni predefinite).
PrepareForBuild:
   Creazione directory "..\xen\Windows7Release\x64\".
   Creazione directory "..\Windows7Release\x64\".
   Creazione directory "..\xen\Windows7Release\x64\xen.tlog\".
InitializeBuildStatus:
   Creazione di
"..\xen\Windows7Release\x64\xen.tlog\unsuccessfulbuild". Ô stato
specificato "AlwaysCreate".
_MASM:
   Assembling ..\..\src\xen\amd64\hypercall_thunk.asm...
   cmd.exe /C
"C:\Users\Emilio\AppData\Local\Temp\tmp8eb6acdfb5f4436ea3385f199faf
ad19.cmd"
   ml64.exe /c /nologo /Zi
/Fo"..\xen\Windows7Release\x64\hypercall_thunk.obj" /W
3 /errorReport:prompt  /Ta..\..\src\xen\amd64\hypercall_thunk.asm
_MASM:
Traceback (most recent call last):
   File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 365,
in <module
     build_sln(driver, release, 'x64', debug[sys.argv[1]], vs)
   File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 138,
in build_s
ln
     msbuild(platform, configuration, 'Build', name + '.sln', '', vs)
   File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 122,
in msbuild

     status = shell([bin], dir)
   File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 100,
in shell
     print(line.rstrip())
   File "C:\Python34\lib\encodings\cp850.py", line 19, in encode
     return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2026' in
position
28: character maps to <undefined>
I did something wrong or there is a bug or unexpected case?
Thanks for any reply.
Not seen anything like that before. I can only assume it's to do with language 
support. It seems like msbuild is emitting characters that the shell is not 
handling correctly. I suspect you'll be ok if you use an English character set 
but I'll try to figure out what the script is/isn't doing.

   Paul


I installed english language pack and solves the problem.
After gave me other error about no sufficent permission on one exe of WDK, I tried to execute as administrator and did max permissions to everyone on the file but not, I solved also that adding nosdv.
After I had near the end another error where I not found a workaround:
Done Building Project "C:\Users\Emilio\Desktop\pvdrivers\xenbus\vs2013\xenbus.sl
n" (Build target(s)).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.37

C:\Users\Emilio\Desktop\pvdrivers\xenbus\vs2013>if errorlevel 1 goto error

C:\Users\Emilio\Desktop\pvdrivers\xenbus\vs2013>exit 0
vs2013\Windows7Release\Win32
['"C:\\Program Files (x86)\\Windows Kits\\8.1\\Debuggers\\x86\\symstore.exe"', ' add', '/s', 'C:\\Symbols', '/r', '/f', '*.pdb', '/t', 'xenbus', '/v', '8.0.0.12'
]
Finding ID...  0000000015

SYMSTORE: Number of files stored = 3
SYMSTORE: Number of errors = 0
SYMSTORE: Number of files ignored = 0
vs2013\Windows7Release\x64
['"C:\\Program Files (x86)\\Windows Kits\\8.1\\Debuggers\\x86\\symstore.exe"', ' add', '/s', 'C:\\Symbols', '/r', '/f', '*.pdb', '/t', 'xenbus', '/v', '8.0.0.12'
]
Finding ID...  0000000016

SYMSTORE: Number of files stored = 3
SYMSTORE: Number of errors = 0
SYMSTORE: Number of files ignored = 0
Traceback (most recent call last):
File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 375, in <module
>
    archive(driver + '\source.tgz', manifest().splitlines(), tgz=True)
File "C:\Users\Emilio\Desktop\pvdrivers\xenbus\build.py", line 289, in manifes
t
    sub = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "C:\Python34\lib\subprocess.py", line 858, in __init__
    restore_signals, start_new_session)
  File "C:\Python34\lib\subprocess.py", line 1111, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

I saw that in repository folder\xenbus\(x64|x86) seems there are the drivers ready, is correct and can be tried?

Thanks for any reply.

_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

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