Skip to content

Conversation

@cheng-z
Copy link
Member

@cheng-z cheng-z commented Jun 23, 2016

Signed-off-by: Cheng Zhang cheng.zhang@citrix.com

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>
(** Returns true if the supplied VM configuration is HVM.
NB that just because a VM's current configuration looks like HVM doesn't imply it
actually booted that way; you must check the boot_record to be sure *)
let is_hvm ~__context (x: API.vM_t) =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just replace this with:

let is_hvm (x: API.vM_t) = x.API.vM_HVM_boot_policy <> ""

The additional ~__context parameter only came in recently, it can go if we don't need it.

@jonludlam what do you think?

@simonjbeaumont
Copy link
Contributor

This additional check from dom0 isn't right. I'm just looking at a more appropriate fix.

@simonjbeaumont
Copy link
Contributor

Superseded by #2682

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants