kvm cpu model

KVM์—๋Š” cpu model์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ชจ๋ธ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

  • host-passthrough

  • host-model

  • named-model

์‚ฌ์šฉ๋ฒ•

์‚ฌ์šฉ๋ฒ•์€ xml์— ๋‹ค์Œ์ฒ˜๋Ÿผ ์ถ”๊ฐ€ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

Host passthrough

<cpu mode='host-passthrough'/>

Host passthrough with feature customization:

<cpu mode='host-passthrough'>
    <feature name="vmx" policy="disable"/>
    ...
</cpu>

Host model:

<cpu mode='host-model'/>

Host model with feature customization:

<cpu mode='host-model'>
    <feature name="vmx" policy="disable"/>
    ...
</cpu>

Named model:

<cpu mode='custom'>
    <model name="Westmere"/>
</cpu>

Named model with feature customization:

<cpu mode='custom'>
    <model name="Westmere"/>
    <feature name="pcid" policy="require"/>
    ...
</cpu>

์•„๋ฌด๊ฒƒ๋„ ์„ค์ •์„ ์•ˆํ•˜๋ฉด ๊ธฐ๋ณธ ๋ฒ„์ „์œผ๋กœ ์ ์šฉ๋˜๋Š”๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.

kvm๋ฒ„์ „์— ๋”ฐ๋ผ์„œ ๊ธฐ๋ณธ ๋ฒ„์ „์ด ๋‹ฌ๋ผ์ง€๋Š”๊ฑธ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

vm์—์„œ ๋‹ค์Œ์ฒ˜๋Ÿผ ํ™•์ธํ•ด๋ณด์‹œ๋ฉด

cat /proc/cpuinfo

๊ธฐ๋ณธ ๋ฒ„์ „์œผ๋กœ ๋‚˜์˜ค๋„ค์š”

host-passthrough ๋ฅผ ์ ์šฉํ•ด๋ณด๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋‚˜์˜ต๋‹ˆ๋‹ค.

์‹ค์ œ ๋ฌผ๋ฆฌ์„œ๋ฒ„์˜ cpu ์ •๋ณด๊ฐ€ ๋ณด์ž…๋‹ˆ๋‹ค.

todo

host-passthrough vs host-model ๋‘๊ฐœ์˜ ์ฐจ์ด์ ์€ ์•Œ์•„๋ณด๊ธฐ

openenbula์—์„œ ์„ค์ •ํ•˜๊ธฐ

๋‹ค์Œ ์ฒ˜๋Ÿผ ์„ค์ •ํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Last updated

Was this helpful?