Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 >

vendredi 5 avril 2013

Xen 4.3 unstable / VGA PassThrough (HD 7970) - Windows 7 64-bit or Linux 64-Bit domUs with more than 3GB for RAM...Yep it works!

This is a simple copy/paste for a mail I sent to Xen community a couple day ago (see http://www.gossamer-threads.com/lists/xen/users/276234. Now I can start my windows 7 domU with more than 3GB. I tested it with 8GB and it works fine!

Update #3 (2013/04/07) Now I can start both Linux and Windows domUs with more than RAM over 3GB . It shouldn't be the most elegant way to do that but it works.

Update #2 (2013/04/06) I update the section Build studom so Linux domU can start...I noticed that I had to go this way else my Linux domUs couldn't start while Windows 7 could start fine

Update #1 (2013/04/06) I update the section Build studom since now there is a quick workaround to built it successfully

Download Xen sources

rev=267773
hg clone -r $rev http://xenbits.xensource.com/staging/xen-unstable.hg/ xen-unstable.hg-rev-XXXXX
cd xen-unstable.hg-rev-XXXXX

Configure

CURL=$(which curl-config) XML=$(which xml2-config) ./configure

Make a first build for tools and cleanup the folder

  • Make a first build for tools
    cd tools
    make -j4
  • Clean up the folder
    make clean

Download and apply the patches

  • Download and apply the 1st patch
    cd qemu-xen-dir-remote/
    wget "http://marc.info/?l=qemu-devel&m=136177475215360&q=raw" -O - | patch -p1
  • Download and apply the 2nd patch
    cd ../..
    wget ftp://ftp.enjellic.com/pub/xen/xen-4.2.0.ati-passthrough.patch -O - | sed -e "s:qemu-xen-traditional:qemu-xen-traditional-dir-remote:g" | patch -p1
  • We have to modify tools/qemu-xen-traditional-dir-remote/hw/pt-graphics.c file so we can run build stubdom
    for i in 0 3;do sed -i "s:^.*iopl(${i});$://iopl(${i});:g" tools/qemu-xen-traditional-dir-remote/hw/pt-graphics.c;done

    NOTICE if this workaround is not apply then you should have this error

    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function `ati_hw_out':
    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/ioemu/hw/pt-graphics.c:82: undefined reference to `iopl'
    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/ioemu/hw/pt-graphics.c:84: undefined reference to `iopl'
    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/mini-os-x86_64-ioemu/mini-os.o: In function `ati_hw_in':
    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/ioemu/hw/pt-graphics.c:72: undefined reference to `iopl'
    /opt/tmp/xen-unstable.hg-rev-XXXXX/stubdom/ioemu/hw/pt-graphics.c:74: undefined reference to `iopl' 

Build and install xen and stubdom

  • Build
    make -j4 xen && make -j4 stubdom
  • Install
    make install-xen && make install-stubdom

Build and install tools

  • Cleanup tools
    cd tools
    make clean
  • Reverse the workaround
    cd ..
    for i in 0 3;do sed -i "s:^.*iopl(${i});$:iopl(${i});:g" tools/qemu-xen-traditional-dir-remote/hw/pt-graphics.c;done
  • Build and install tools
    make -j4 tools
    make install-tools PYTHON_PREFIX_ARG=

Linux script to manage domU (start/stop....)

Download the Linux shell script ftp://ftp.enjellic.com/pub/xen/run-passthrough and updated it to your own needs

lundi 1 avril 2013

Xen 4.3 unstable / VGA PassThrough (HD 7970)- Playing The Darkness II on Ubuntu 12.04 (Wine 1.5.27)

Wine 1.5.27 is used to play the game.
  • [-] Changing the window mode on the fly doesn't work.
  • [+]No patch required for wine
  • [+]Compared to the tests with Nvidia card, there is no graphical issue.

mercredi 13 mars 2013

Xen 4.3 - VGA PassThrough - ATI Card HD 7970 (changeset = 26706)

Listed below are the instructions to apply those patches. I tested thoses patches for revision 26706 and it worked too.
  • Download the Xen unstable sources
    rev=26706
    hg clone -r $rev http://xenbits.xensource.com/staging/xen-unstable.hg/ xen-unstable.hg-rev-${rev}
    cd xen-unstable.hg-rev-${rev}
  • configure
    CURL=$(which curl-config) XML=$(which xml2-config) ./configure
  • Make an initial build for tools
    cd tools
    make -j4
    
  • Clean up tools folder
    make clean
  • Return to the Xen folder
    cd ..
  • Download the patches
    wget -q http://www.davidgis.fr/download/xen-4.3_rev26458_gfx-passthrough-patchs_ATI_HD7970.tar.bz2
  • Uncompress the tarball
    tar xvjf xen-4.3_rev26458_gfx-passthrough-patchs_ATI_HD7970.tar.bz2
  • Apply the patches
    for file in $(ls ../xen-4.3_rev26458_gfx-passthrough-patchs_ATI_HD7970/*);do patch -p1 < $file;done
  • Build everything
    make -j4 xen && make -j4 tools && make -j4 stubdom
  • Install everything
    make install-xen && make install-tools PYTHON_PREFIX_ARG= && make install-stubdom

lundi 4 mars 2013

Vanessa Paradis - "Love Song"

Avec le retour des beaux jours ces derniers temps, rien de tel qu'une bonne musique pour mettre de bonne humeur le matin...Perso je kiffe


Vanessa Paradis "Love Song" 1er extrait nouvel... par MaudClifton