<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16721"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV>I hava a problem that in windows 7 VM about the number of vCPU. Then I set
up windows instance and give it 8cores, and in windonw7 Device Manager I check
out that there are 8 cores. But In cmd.exe execute ¡°wmic->cpu get *" find it
out that there are 2 single core, I don't know Why. And I modify
/etc/libvirt/qemu/instance-*.xml as follow:</DIV>
<DIV><PRE style="OVERFLOW: auto; WORD-WRAP: normal; BORDER-TOP: 0px; BORDER-RIGHT: 0px; VERTICAL-ALIGN: baseline; BORDER-BOTTOM: 0px; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(0,0,0); PADDING-BOTTOM: 5px; TEXT-ALIGN: left; PADDING-TOP: 5px; FONT: 14px/18px Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; PADDING-LEFT: 5px; MARGIN: 0px 0px 10px; BORDER-LEFT: 0px; LETTER-SPACING: normal; PADDING-RIGHT: 5px; MAX-HEIGHT: 600px; WIDTH: auto; BACKGROUND-COLOR: rgb(238,238,238); TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px"><CODE style="FONT-SIZE: 14px; BORDER-TOP: 0px; FONT-FAMILY: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; BORDER-RIGHT: 0px; VERTICAL-ALIGN: baseline; BORDER-BOTTOM: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; BORDER-LEFT: 0px; PADDING-RIGHT: 0px; BACKGROUND-COLOR: rgb(238,238,238)"><vcpu>8</vcpu>
<cpu>
<topology sockets='1' cores='4' threads='2'/>
</cpu></CODE></PRE></DIV>
<DIV>But this is modified after VM is set up. In according to my need, before VM
setting up, VM can be given 8 cores not 2 single core.</DIV></DIV>
<DIV> </DIV>
<HR style="HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>shenwei9008</SPAN></DIV></BODY></HTML>