Lesson 3c (CPU and Device Virtualization) Flashcards

1
Q

What two schedulers does the hypervisor use

A

proportional and fair share

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the proportional share scheduler based on

A

Service level agreement. We could give guest1 50% guest2 30% and guest3 20%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the fair share scheduler based on

A

all guest get the same share if we had 3 guest they would get 33% each

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does the hypervisor need to do to handle cpu instructions that fail silently outside of privileged mode

A

It inspects the binary and rewrites the instructions to equivalent instructions that do not fail silently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how are devices communicated with in full virtualized

A

trap and emulate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how are devices communicated with in para virtualization

A

more opportunities for innovation. explict (hypercalls) “guest has control”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

data transfer ni full virtualization

A

implicit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

data transfer in para vitualization

A

explicit. async I/O rings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the I/O Ring

A

it is a circular data structure that the guest uses to talk to the para hypervisor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does adding request to the ring work

A

It is producer consumer where the guest produces. It has a share pointer with xen on where to add records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how does adding responses work

A

Producer consumer is used. Xen owns a shared pointer with the guest. the guest can only read this pointer. The pointer is updated when responses are written. The guest has a share pointer that it uses to know where in the rung to pull data from.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In network virtualization how many I/O rings does Xen have?

A

two. One for transmit and one for receving

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

are the packets copied into the I/O ring

A

No. a shared pointer is enqued

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what scheduling algorithm does xen use for networking

A

Round robin amoung virtual machines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

where do the packets that are received go

A

Xen preallocates frames from the guest OS and has pointers to these pages in the receive ring. The packets are inserted in these frames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how does xen make disk I/O efficent

A

Request from competing domains may be reordered

17
Q

are the disk i/o pages copied to the ring

A

No. they are accessed via shared pointers that are in the ring

18
Q

what is a “reorder barrier”

A

allows the guest to enforce order of i/o operations

19
Q

What time measurement do virtual machins need for billing

A

cpu, memory, storage and network usage

20
Q

what is the difference between virtual and extensible OS?

A

Focus is on protection and flexibility

21
Q

what is hardware assisted virtualization

A

technique xen uses to run unmodified OS. (xen is normally para)